home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-13 / amedit20.zip / ED.DOC < prev    next >
Text File  |  1992-09-08  |  113KB  |  2,911 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.                                 AM-EDIT
  9.  
  10.  
  11.                             REFERENCE MANUAL
  12.  
  13.  
  14.                      Version 2.00 (September, 1992)
  15.  
  16.  
  17.       Copyright (C) 1991 by Paul L. Clem, Jr., all rights reserved
  18.  
  19.  
  20.  
  21.                           PLC Software
  22.                           2683 Swiss Lane
  23.                           P.O. Box 26127
  24.                           Birmingham, AL 35226
  25.  
  26.                           Voice: (205) 822-1619
  27.                           CompuServe:  70751,1322
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.                            _______
  35.                       ____|__     |                (R)
  36.                    --|       |    |-------------------
  37.                      |   ____|__  |  Association of
  38.                      |  |       |_|  Shareware
  39.                      |__|   o   |    Professionals
  40.                    -----|   |   |---------------------
  41.                         |___|___|    MEMBER
  42.  
  43.  
  44.  
  45.  
  46.  
  47.                            TABLE OF CONTENTS
  48.                            -----------------
  49.  
  50.      SECTION                                                    PAGE
  51.      -------                                                    ----
  52.  
  53.  
  54. 1.   Introduction ..............................................  1
  55. 1.1    Definition of Shareware .................................  2
  56. 1.2    Installation ............................................  3
  57. 1.3    General Description .....................................  4
  58. 1.4    Selecting the file to edit ..............................  6
  59. 1.5    Rules for non-text files ................................  8
  60.  
  61. 2.   Positioning the current line ..............................  9
  62.  
  63. 3.   Editing a Line ............................................ 11
  64.  
  65. 4.   Function keys ............................................. 13
  66.  
  67. 5.   Starting a new file ....................................... 19
  68.  
  69. 6.   Commands .................................................. 21
  70. 6.1    Delete command .......................................... 22
  71. 6.2    Move command ............................................ 24
  72. 6.3    Copy command ............................................ 25
  73. 6.4    Insert commands ......................................... 27
  74. 6.5    Find commands ........................................... 28
  75. 6.6    Find command with option to replace ..................... 29
  76. 6.7    Find and replace all .................................... 30
  77. 6.8    Print commands .......................................... 31
  78. 6.9    Trace command ........................................... 32
  79.  
  80. 7.   System Information Screen ................................. 33
  81.  
  82. 8.   Using the calculator ...................................... 34
  83.  
  84. 9.   User ID function .......................................... 36
  85.  
  86. Appendix A - Messages .......................................... 40
  87.  
  88. A.1    Informative messages .................................... 40
  89. A.2    Error messages .......................................... 43
  90.  
  91. 1  INTRODUCTION
  92.    ------------
  93.  
  94.  
  95. The author has been a contract programmer for 22 years. During this
  96. time, he has had occasion to use numerous text editors on computers
  97. of all sizes.
  98.  
  99. His goal has been to provide a low-cost PC editor which combines the
  100. best features from the various editors he has used. Some features of
  101. the resulting system are listed below.
  102.  
  103.     *  The entire system is written in assembler, so as to provide
  104.        the fastest possible response time.
  105.  
  106.     *  It is extremely fast when loading files, saving files, and
  107.        when searching for text strings.
  108.  
  109.     *  It is compact. The program size is under 39K.
  110.  
  111.     *  It provides extensive on-screen help.
  112.  
  113.     *  It can store over 3 times the amount of data in real memory
  114.        as compared to some PC editors.
  115.  
  116.     *  It contains a built-in decimal/hex/binary calculator, which
  117.        includes logical functions such as AND, OR, XOR, and NOT as
  118.        well as the arithmetic functions.
  119.  
  120.     *  It contains a built-in ascii chart.
  121.  
  122.     *  It allows the user to trace all lines which have been changed,
  123.        copied, moved, or added since the edit began.
  124.  
  125.     *  It allows each user to have his or her own "User ID", identi-
  126.        fying parameters chosen by that user. Parameters include the
  127.        screen colors, file backup option, and the number of lines to
  128.        scroll when paging through the file.
  129.  
  130.     *  It contains a built-in screen blanker and an automatic save
  131.        option, and both features can be customized for each user.
  132.  
  133.     *  It uses commands rather than "pop-up" menus, and the user is
  134.        never required to enter a line number in a command.
  135.  
  136.     *  It allows the user to execute commands with a minimal number
  137.        of keystrokes. For example, after starting an edit, you can
  138.        delete every line in your file with the following keystrokes:
  139.  
  140.            *  Type the letter "d" (or "D")
  141.            *  Press Ctrl-Page Down
  142.            *  Press the ENTER key
  143.  
  144.        The lines will be deleted in a fraction of a second. You can
  145.        then restore all lines that you just deleted by simply press-
  146.        ing function key Shift-F4.
  147.  
  148.  
  149.                                                                  -1-
  150.  
  151. The result is a "no-nonsense" full-screen text editor which is both
  152. powerful and extremely easy to use. It does not duplicate functions
  153. which can be performed by your operating system. It does not contain
  154. those complex functions which, in the opinion of the author, are of
  155. absolutely no use to most programmers and which cause even the most
  156. simple function to be more complicated than it needs to be.
  157.  
  158. Consequently, you are not burdened with hugh manuals which must be
  159. consulted at every turn. Instead, you have a brief reference manual
  160. which you probably need to read only once. After that, you can use
  161. the series of HELP screens within the editor (initiated by pressing
  162. function key F1) to answer most of your questions.
  163.  
  164.  
  165. 1.1  DEFINITION OF SHAREWARE
  166.      -----------------------
  167.  
  168. AM-EDIT is a "shareware program" and is provided at no charge to you
  169. for evaluation. Shareware is a method of distribution, not a type of
  170. software. Shareware distribution gives you a chance to try software
  171. before buying it. If you try a Shareware program such as AM-EDIT and
  172. continue to use it, you are expected to register.
  173.  
  174. The Shareware system makes fitting your needs easier, because you can
  175. try a product before you buy. And because the overhead is low, prices
  176. are low also. Shareware has the ultimate money-back guarantee; if you
  177. don't use the product, you don't pay for it.
  178.  
  179. You can feel free to make copies of the shareware version of AM-EDIT
  180. to give to friends and associates, with the understanding that they
  181. too are expected to register if they continue to use the system.
  182.  
  183. If you find AM-EDIT useful for your needs and you continue to use it
  184. after a reasonable trial period, you are asked to make a registration
  185. payment of $40 to PLC Software. The registration payment includes $37
  186. for the system and $3 for shipping.
  187.  
  188. Upon registering, you will receive the following:
  189.  
  190.     *  A diskette containing the latest version of the system.
  191.  
  192.     *  A printed and bound reference manual.
  193.  
  194.     *  A registration number entitling you to free technical support.
  195.  
  196.     *  Notices of major new releases, detailing all enhancements.
  197.  
  198.     *  The option to purchase any newer version at low cost.
  199.  
  200. Registration will license one copy of AM-EDIT for use on any one com-
  201. puter at any one time. The registered version should NOT be given to
  202. any other computer users.
  203.  
  204. Remember that shareware is based on trust. The authors of shareware
  205. programs cannot stay in business unless those who use the programs
  206. register.
  207.  
  208.  
  209.                                                                  -2-
  210.  
  211. The author is a member of the Association of Shareware Professionals
  212. (ASP). ASP wants to make sure that the shareware principle works for
  213. you. If you are unable to resolve a shareware-related problem with
  214. an ASP member by contacting the member directly, ASP may be able to
  215. help. The ASP Ombudsman can help you resolve a dispute or problem
  216. with an ASP member, but does not provide technical support for mem-
  217. bers' products. Please write to the ASP Ombudsman at 545 Grover Road,
  218. Muskegon, MI 49442 or send a CompuServe message via CompuServe Mail
  219. to ASP Ombudsman 70007,3536.
  220.  
  221.  
  222.  
  223. 1.2  INSTALLATION
  224.      ------------
  225.  
  226. The following is needed to run AM-EDIT:
  227.  
  228.     *  An IBM PC, or compatible, with monitor
  229.  
  230.     *  DOS version 2.0 or any later DOS version
  231.  
  232.     *  At least 128K of memory
  233.  
  234.     *  A hard disk drive
  235.  
  236.     *  A 3.5" or 5.25" floppy drive
  237.  
  238.  
  239. The AM-EDIT system consists of a single program, called ED.EXE. There
  240. are no overlays, external files, or auxiliary programs needed to set
  241. screen colors and other parameters. Everything you need is included
  242. in program ED.EXE.
  243.  
  244. However, the system does create a file called AMEDIT.DAT in the root
  245. directory of your hard disk to store parameters defined by individual
  246. users of the program.
  247.  
  248. To install the system, copy ED.EXE onto your hard disk drive. If you
  249. create a special directory for AM-EDIT, you may want to change your
  250. AUTOEXEC.BAT file to include the new directory in the PATH command.
  251. This will make it easier to execute the system from any directory.
  252.  
  253. To execute AM-EDIT, enter "ed" on the DOS command line and press the
  254. ENTER key. If you prefer, you can enter the name of the file that you
  255. wish to edit after the command, for example:
  256.  
  257.        ed yourfile.bat <enter>
  258.  
  259. If you do not enter a file name, then the first screen to appear will
  260. prompt you for the name of the file that you wish to edit (Refer to
  261. Section 1.4 - Selecting the file to edit).
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.                                                                  -3-
  270.  
  271. 1.3  GENERAL DESCRIPTION
  272.      -------------------
  273.  
  274. AM-EDIT is a full-screen text editor which allows you to create and
  275. update computer programs, batch files, and other text files.
  276.  
  277. AM-EDIT does not pretend to be a word processor. It is first and fore-
  278. most a programmers tool. However, it can easily be used to create and
  279. maintain document files. The "split line" and "join line" functions,
  280. which are initiated by pressing function keys F7 and Shift-F7, were
  281. added especially for this purpose.
  282.  
  283. When you first execute AM-EDIT using a color monitor, you will see two
  284. different color schemes on the screen.
  285.  
  286. The top two lines (lines 1 and 2) and the bottom line (line 25) of the
  287. screen will have a red background and white foreground. This is called
  288. the "highlight" color.
  289.  
  290. The remainder of the screen (lines 3-24) is the area in which the text
  291. will appear. These lines will have a blue background with an off-white
  292. foreground. This is called the "text" color.
  293.  
  294. If you are using a monochrome monitor, the "highlight" scheme will be
  295. black on a grey background, and the "text" scheme will be white on a
  296. black background.
  297.  
  298. These are the "default" color schemes. As you will see later in this
  299. manual, each user can set his or her own color schemes, and there can
  300. be up to 30 different users on the same computer.
  301.  
  302. A field which is within the text area (lines 3-24 of the screen) but
  303. which has the same color scheme as screen lines 1, 2, and 25 is said
  304. to be "highlighted".
  305.  
  306. The top line of the screen contains the name of the file that you are
  307. editing and the total number of lines in the file.
  308.  
  309. You will notice that the file name displayed on the top line of the
  310. screen will initially be in the highlight color scheme. But once you
  311. have made a change to your text, the name is displayed with the text
  312. color scheme. This serves to remind you that there are one or more
  313. unsaved changes to your file. If you save the file during the edit,
  314. the file name reverts to the highlight color scheme.
  315.  
  316. Line 2 of the screen is where you enter commands. When you begin an
  317. edit, the cursor is positioned on this line.
  318.  
  319. Whenever the cursor is positioned on a text line (lines 3-24), the
  320. word "EDIT" will appear in the first 4 columns of the bottom line of
  321. the screen.
  322.  
  323. If the cursor is positioned on a text line and you wish to enter a
  324. command, press the ESCAPE key. This will move the cursor to the com-
  325. mand line.
  326.  
  327.  
  328.  
  329.                                                                  -4-
  330.  
  331. If the cursor is positioned on the command line and you wish to edit
  332. a text line, simply press the ENTER key without entering a command.
  333. The cursor will move to the current text line.
  334.  
  335. There are several other ways to get from the command line to a text
  336. line, and these will become apparent as you read further.
  337.  
  338. The first 7 columns of the text lines are reserved by the system for
  339. line numbers and other information which will be explained later in
  340. this manual. Line numbers are automatically maintained by the system
  341. in sequential order. These line numbers are NOT a part of your file,
  342. and are displayed strictly for your convenience.
  343.  
  344. The system allows you to suppress the display of line numbers if you
  345. so desire. This is one of the options which you can specify when you
  346. define a User ID (see Section 9). If you suppress line numbers, only
  347. the first 2 columns of the text lines are reserved by the system.
  348.  
  349. Except for null files, one of the lines in your file is the "current
  350. line". The line number of the current line is always highlighted, and
  351. a highlighted left-pointing arrow appears immediately to the right of
  352. the line number.
  353.  
  354. If you choose to suppress the display of line numbers, then the cur-
  355. rent line is identified by a highlighted left-pointing arrow in the
  356. first column of the line.
  357.  
  358. The line number of the current line is displayed on the bottom line of
  359. the screen, after the letter "L". When you begin an edit, the current
  360. line is the first line of your file.
  361.  
  362. The position of the current line is crucial to most commands and func-
  363. ion keys within AM-EDIT. It is up to you to position this line (refer
  364. to Section 2 - Positioning the current line).
  365.  
  366. The system also maintains a column number, which is displayed on the
  367. bottom line of the screen after the letter "C". The column number is
  368. ALWAYS the current (or last) position of the cursor within the current
  369. line. Since a line may have up to 1024 columns, the column number will
  370. always have a value of 1 through 1024. When you begin an edit, column
  371. number is 1.
  372.  
  373. Column number applies only to the current TEXT line. If the cursor is
  374. positioned on the command line, you will notice that the column number
  375. remains unchanged if you type a command.
  376.  
  377. Since a text line can have up to 1024 characters but not all of these
  378. characters can appear on the screen at any one time, your text lines
  379. may become offset. For example, if the cursor is positioned on a text
  380. line and you press the right arrow key while the cursor is positioned
  381. at the last column of the screen, you will notice that all text lines
  382. (but not line numbers) will shift left one column, with the leftmost
  383. character of each line shifting out of view.
  384.  
  385. Whenever your text lines are offset by one or more characters, an as-
  386. terisk (*) appears after the column number.
  387.  
  388.  
  389.                                                                  -5-
  390.  
  391. The middle part of the screen's bottom line is reserved for error and
  392. informative messages. Informative messages result from some action you
  393. have taken. For example, after the completion of a delete command, a
  394. message will tell you how many lines were deleted.
  395.  
  396. The screen's bottom line also shows whether you are in character in-
  397. sert mode as opposed to character overwrite mode. If "INS" appears in
  398. columns 61-63 of the line, you are in insert mode. To get into insert
  399. mode, press the insert key (marked "Ins" or "Insert"). Pressing the
  400. insert key again returns you to overwrite mode.
  401.  
  402. All editing is done in real memory. When you begin an edit, the sys-
  403. tem uses only the amount of memory required to store itself and your
  404. file. If your file grows in size, the system allocates more memory
  405. as needed. The amount of memory that can be allocated depends on the
  406. amount of memory on your computer, but cannot exceed 640k.
  407.  
  408. If the size of your file should ever exceed available memory, you will
  409. start getting error messages whenever you attempt some action that in-
  410. creases the size of your file. If this should occur, you should save
  411. your file and end the edit. Then restart the edit.
  412.  
  413. The system can handle up to 60,000 lines. It is highly unlikely that
  414. a file would ever grow this large without exceeding available memory,
  415. however, the system does provide a saveguard. An error message will
  416. appear whenever you attempt some action that would cause the number of
  417. lines in your file to exceed 60,000.
  418.  
  419.  
  420. 1.4  SELECTING THE FILE TO EDIT
  421.      --------------------------
  422.  
  423. As mentioned earlier, when you execute AM-EDIT from the DOS command
  424. line, you have the option of entering the name of the file that you
  425. wish to edit.
  426.  
  427. If you choose not to enter the file name on the DOS command line or
  428. if the file name entered was not a valid file name, then the first
  429. screen that you see will be the file-to-edit screen.
  430.  
  431. As the title indicates, the purpose of the file-to-edit screen is to
  432. prompt you for the name of the file that you wish to edit.
  433.  
  434. If the file that you wish to edit is not in the current directory (the
  435. directory you were in when you executed AM-EDIT), you must enter the
  436. full path name starting with the letter identifying the disk drive,
  437. for example:
  438.  
  439.    c:\janet\asmprogs\sorter.asm
  440.  
  441. You also have the option of finding the file that you wish to edit by
  442. performing a directory search. To perform a search of the current dir-
  443. ectory, press the ENTER key at the file-to-edit prompt without enter-
  444. ing a file name.
  445.  
  446.  
  447.  
  448.  
  449.                                                                  -6-
  450.  
  451. The names of all files and subdirectories from the current directory
  452. will be displayed in alphabetical order on the screen. The date and
  453. time that each file or subdirectory was created is displayed, along
  454. with the size of each file.
  455.  
  456. You can use the PAGE DOWN/PAGE UP keys and the up/down arrows to find
  457. the desired file or subdirectory. Once the desired file/subdirectory
  458. is highlighted, press the ENTER key to select it.
  459.  
  460. If you selected a subdirectory, then the file and subdirectory names
  461. from that subdirectory are displayed.
  462.  
  463. When you do a directory search, you can enter a directory path and/or
  464. use the global file name characters (* and ?), for example:
  465.  
  466.  
  467.    c:\janet\      Displays all files and subdirectories in directory
  468.                   C:\JANET.
  469.  
  470.    *.doc          Displays all files in the current directory having
  471.                   a file suffix of "DOC".
  472.  
  473.    c:\larry\*.?   Displays all files in directory C:\LARRY having a
  474.                   a 1-character suffix or no suffix at all.
  475.  
  476. During a directory search, you can go directly to the root directory
  477. of your hard disk by pressing function key F4. From there, you can get
  478. to any file on the disk.
  479.  
  480. You can also press function key F8 to cancel a directory search and
  481. return to the file-to-edit screen.
  482.  
  483. When you end an edit, all memory that was allocated is released and
  484. you are returned to the file-to-edit screen. From there, you can se-
  485. lect another file to edit, re-edit the same file, or return to DOS by
  486. pressing function key F8.
  487.  
  488. After returning to the file-to-edit screen from an edit, you can use
  489. the repeat key (function key F3) to repeat the name of the file that
  490. you just finished editing. You would then press the ENTER key if you
  491. wanted to re-edit the same file, or you could change the file name
  492. and then press the ENTER key.
  493.  
  494. If you choose to select another file to edit or to re-edit the same
  495. file, then all text string search arguments defined in the previous
  496. edit will remain in effect.
  497.  
  498.  
  499.  
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509.                                                                  -7-
  510.  
  511. 1.5  RULES FOR NON-TEXT FILES
  512.      ------------------------
  513.  
  514. When AM-EDIT detects that the file that you have selected for editing
  515. is a non-text file, such as an object module or an executable file,
  516. the system handles the file in a different manner.
  517.  
  518. First, the system breaks the file into 72-character lines, with the
  519. last line having a length of 1 to 72 characters. This allows you to
  520. browse through the file using the up/down arrows and the PAGE UP and
  521. PAGE DOWN keys.
  522.  
  523. For obvious reasons, you are not allowed to update a non-text file. If
  524. you press a function key such as F4 (delete line) or F6 (add a line),
  525. you will get the error message "Invalid for non-text files".
  526.  
  527. The ONLY commands that you can use with non-text files are the string
  528. search (find) commands, but you may not use the "replace text" options
  529. with these commands. If you attempt to execute any other command, the
  530. error message "Invalid for non-text files" will result.
  531.  
  532. You may use functions key F9 to find the next occurrence of a string
  533. and Shift-F9 to find the previous occurrence.
  534.  
  535. When you have finished browsing through a non-text file, press func-
  536. tion key F8 (save/exit key). This will return you immediately to the
  537. file-to-edit screen where you can either select another file to edit
  538. or return to DOS.
  539.  
  540.  
  541.  
  542.  
  543.  
  544.  
  545.  
  546.  
  547.  
  548.  
  549.  
  550.  
  551.  
  552.  
  553.  
  554.  
  555.  
  556.  
  557.  
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564.  
  565.  
  566.  
  567.  
  568.  
  569.                                                                  -8-
  570.  
  571. 2.  POSITIONING THE CURRENT LINE
  572.     ----------------------------
  573.  
  574. The position of the current line is crucial to most of the commands
  575. and function keys within AM-EDIT.
  576.  
  577. You may use any of the methods listed below to position the current
  578. line. Unless otherwise noted, all keys mentioned below will perform
  579. alike regardless of whether the cursor is positioned on the command
  580. line or on a text line.
  581.  
  582.     *  The "up arrow" key moves the current line up 1 line. If the
  583.        current line is already the first line of your file, the mes-
  584.        sage "*** Top of data ***" is displayed.
  585.  
  586.     *  The "down arrow" key moves the current line down 1 line. If the
  587.        current line is already the last line of your file, the message
  588.        "*** End of data ***" is displayed.
  589.  
  590.     *  "PAGE UP" causes the lines on your screen to scroll down by the
  591.        number of lines set for the current User ID, with the position
  592.        of the current line decreasing by the number of lines scrolled.
  593.  
  594.        If you are already at the top page of the file when you press
  595.        PAGE UP, then the screen does NOT scroll and the informative
  596.        message "*** Top of data ***" is displayed.
  597.  
  598.     *  "PAGE DOWN" causes the lines on your screen to scroll up by the
  599.        number of lines set for the current User ID, with the position
  600.        of the current line increasing by the number of lines scrolled.
  601.  
  602.        If you are already at the last page of your file when you press
  603.        PAGE DOWN, then the screen remains as is and the informative
  604.        message "*** End of data ***" is displayed.
  605.  
  606.     *  Ctrl-PAGE UP positions the current line at the first line of
  607.        the file.
  608.  
  609.     *  Ctrl-PAGE DOWN positions the current line at the last line of
  610.        the file.
  611.  
  612.     *  Function key F9 searches for the next occurrence of the string
  613.        defined in the most recent find command. If the text string is
  614.        found, the line containing the string becomes the current line
  615.        with the cursor positioned at the 1st character of the "found"
  616.        string. Refer to Section 6.5 for more information about the
  617.        Find command.
  618.  
  619.     *  Shift-F9 searches for the previous occurrence of the string de-
  620.        fined by the most recent find command. If the string is found,
  621.        the line containing the string becomes the current line, with
  622.        the cursor positioned at the beginning of the "found" string.
  623.        See Section 6.5 for more information about the Find command.
  624.  
  625.  
  626.  
  627.  
  628.  
  629.                                                                  -9-
  630.  
  631.     *  While the cursor is positioned on the command line, you may set
  632.        the current line to any line number. To do this, enter the line
  633.        number on the command line and press ENTER. If you enter zero,
  634.        the current line becomes the first line of the file. If you en-
  635.        ter a number which exceeds the number of the last line of your
  636.        file, then the current line becomes the last line of your file.
  637.  
  638.        This feature is especially useful after you compile a program
  639.        in which one or more errors were found. Since a compile will
  640.        normally give you the line numbers where the errors occurred,
  641.        you can use this feature to go directly to the line(s) which
  642.        caused the errors.
  643.  
  644.     *  Whenever the cursor is positioned on a text line, you can press
  645.        ENTER to advance the current line to the next text line, with
  646.        the cursor positioned at the first non-blank character of that
  647.        line (or column 1 if the line is blank). If the current line is
  648.        positioned at the bottom line (line 24) on the screen when you
  649.        press ENTER, then all lines on the screen will scroll up, with
  650.        the top line scrolling off the screen and the next text line in
  651.        order scrolling onto the screen.
  652.  
  653.        If you press the ENTER key while the current line is the LAST
  654.        line of your file, the message "*** End of data ***" will be
  655.        displayed and the current line remains unchanged.
  656.  
  657.     *  When the cursor is positioned on a text line, pressing the TAB
  658.        key advances the cursor to the start of the next field on the
  659.        screen. If the next field is on another line, that line becomes
  660.        the current line. If the next field is on a line which is not
  661.        on the screen, then the text lines on the screen will scroll up
  662.        until the line containing the next field is reached.
  663.  
  664.     *  When the cursor is positioned on a text line, pressing Shift-
  665.        TAB positions the cursor at the start of the previous field on
  666.        the screen. If the previous field is on another line, then that
  667.        line becomes the current line. If there is no previous field on
  668.        the screen, then the text lines on the screen will scroll down
  669.        until the line containing the previous field is reached.
  670.  
  671.        If should be noted that while you are in the process of typing
  672.        new lines into your file, the TAB and Shift-TAB keys have dif-
  673.        ferent meanings. See the description of function keys F6 and
  674.        Shift-F6 in Section 4.
  675.  
  676.        Also, when the cursor is positioned on the command line, press-
  677.        ing the TAB and Shift-TAB keys will not move the cursor to the
  678.        next or previous field on the command line.
  679.  
  680.  
  681.  
  682.  
  683.  
  684.  
  685.  
  686.  
  687.  
  688.  
  689.                                                                 -10-
  690.  
  691. 3.  EDITING A LINE
  692.     --------------
  693.  
  694. The following keys may be used while entering the file-to-edit, while
  695. entering a command, or when adding or changing a text line. When the
  696. cursor is positioned on a text line, some of the keys may cause lines
  697. on your screen (but not line numbers) to shift either left or right.
  698.  
  699. For example, if you press the right arrow key while the cursor is pos-
  700. itioned on a text line at the last column of the screen, then the text
  701. on all lines will shift left 1 position.
  702.  
  703. Remember that while the cursor is positioned on a text line, the col-
  704. umn number displayed at the bottom of the screen shows the position of
  705. the cursor on the current line. An asterisk (*) after the column num-
  706. ber indicates that the text is offset by one or more characters.
  707.  
  708.     *  Left arrow moves the cursor left 1 column. If the cursor is al-
  709.        ready positioned at the first column of the line, then the key
  710.        is ignored (no error message is displayed).
  711.  
  712.     *  Right arrow moves the cursor right 1 column. If the cursor is
  713.        already positioned at the last column of the line (column 80
  714.        of the command line or column 1024 of a text line), the cursor
  715.        will not move and the message "End of line" will appear.
  716.  
  717.     *  The HOME key causes the cursor to be positioned at the first
  718.        non-blank character of the line. If the line is blank, then
  719.        the cursor is positioned at the beginning of the line.
  720.  
  721.     *  The END key positions the cursor at the column to the right of
  722.        the last non-blank character of the line, or at the last column
  723.        of the line if that column is not blank.
  724.  
  725.     *  The BACKSPACE key moves the cursor 1 position to the left and
  726.        then erases the character at that cursor position. But if the
  727.        cursor is positioned at the first column of the line, the key
  728.        is ignored.
  729.  
  730.        One of the User ID options (see Section 9) allows you to make
  731.        the BACKSPACE key identical in function to the left arrow key.
  732.        If you choose that option, the BACKSPACE key moves the cursor
  733.        1 position to the left, but does NOT erase the character.
  734.  
  735.     *  The DELETE (or DEL) key deletes the character at the current
  736.        cursor position. Any characters on the line which were to the
  737.        right of the deleted character will shift left 1 column.
  738.  
  739.     *  Function key F2 erases the character at the current cursor pos-
  740.        ition and all characters which are to the right of the cursor.
  741.  
  742.     *  Function key F3 (the repeat key) may be used to restore an al-
  743.        tered text line to its original state, to repeat any one of the
  744.        last 6 string search (find) commands, or to repeat the previous
  745.        file name if you are entering the file-to-edit. See Section 4
  746.        (Function keys) for more information.
  747.  
  748.  
  749.                                                                 -11-
  750.  
  751.     *  When the cursor is positioned on a text line, pressing the TAB
  752.        key advances the cursor to the start of the next field on the
  753.        screen. This provides an alternative to using the right arrow
  754.        key when positioning the cursor.
  755.  
  756.        If the next field is on another line, then the cursor advances
  757.        to the first field on that line, and that line becomes the cur-
  758.        rent line. This may cause lines on your screen to scroll up.
  759.  
  760.        As an example, suppose you press the TAB key while the cursor
  761.        is positioned at or past the last field of the last line (line
  762.        24) of the screen. The following will happen:
  763.  
  764.          *  All lines on the screen will scroll up 1 line, with the
  765.             top line scrolling off the screen.
  766.          *  The next line in order will scroll onto the screen.
  767.          *  The cursor is positioned at the start of the first field
  768.             of the line that scrolled onto the screen.
  769.  
  770.        If, in the above example, the next line in order was blank or
  771.        there were several blank lines before the next non-blank line,
  772.        then all lines on the screen would have scrolled up until a
  773.        non-blank line (or end of file) was reached.
  774.  
  775.     *  While the cursor is positioned on a text line, pressing Shift-
  776.        TAB moves the cursor to the start of the previous field on the
  777.        screen. This key provides an alternative to using the left ar-
  778.        row key when moving the cursor. Like the TAB key, Shift-TAB can
  779.        alter the position of the current line, and may cause the lines
  780.        on your screen to scroll down one or more lines.
  781.  
  782.     *  Ctrl-HOME positions the cursor at the first column of the line.
  783.        If the cursor is on the command line, then the cursor moves to
  784.        the beginning of that line. Otherwise, the cursor moves to the
  785.        first column of the current text line.
  786.  
  787.     *  Ctrl-END positions the cursor at the last column of the line.
  788.        If the cursor is on the command line, then the cursor moves to
  789.        the end of that line. Otherwise, the cursor moves to the last
  790.        column (column 1024) of the current text line.
  791.  
  792.  
  793.  
  794.  
  795.  
  796.  
  797.  
  798.  
  799.  
  800.  
  801.  
  802.  
  803.  
  804.  
  805.  
  806.  
  807.  
  808.  
  809.                                                                 -12-
  810.  
  811. 4.  FUNCTION KEYS
  812.     -------------
  813.  
  814. All function keys described in this section may be pressed while the
  815. cursor is positioned on the command line or on a text line.
  816.  
  817. Since many of the function keys act as commands, you must make sure
  818. that the command line is blank whenever you press one of these keys
  819. while the cursor is positioned on the command line. Otherwise, the
  820. system does not know whether to process the command or the function
  821. key, and the error message "Command conflict" may result.
  822.  
  823.  
  824. F1 - Help key. Press this key to get on-screen help.
  825.  
  826. F2 - Erases the character at the current cursor position and all
  827.      characters to the right of the cursor on the line.
  828.  
  829.      Remember that since a text line can have up to 1024 characters
  830.      but not all of these characters can appear on the screen at one
  831.      time, this key may erase characters which are not seen on the
  832.      current screen.
  833.  
  834. F3 - This is the repeat key.
  835.  
  836.      While entering the file-to-edit, you can press function key F3
  837.      to repeat the name of the file (if any) that you last edited.
  838.  
  839.      If the cursor is positioned on the command line, you can restore
  840.      any one of your last six string search (find) commands. To do
  841.      this, just continue pressing F3 until the desired search command
  842.      appears on the command line. You can then change the command or
  843.      leave it as is. Press the ENTER key to reissue the command.
  844.  
  845.      If the cursor is positioned on a text line, function key F3 will
  846.      restore the current line to its original state. This is useful
  847.      if you make unwanted changes to a line, for example:
  848.  
  849.        *  You press function key F2 to erase part of a line and then
  850.           notice that you erased the wrong line. By pressing F3, the
  851.           line is restored to its original state.
  852.  
  853.        *  You begin entering a command and suddenly realize that the
  854.           cursor is positioned on a text line instead of the command
  855.           line. In this case, press F3 to restore the text line and
  856.           then press the ESCAPE key to get to the command line.
  857.  
  858.      For text lines, function key F3 applies only to the current text
  859.      line. Once you have moved the cursor away from a line, you can
  860.      not return to that line and use function key F3 to restore it.
  861.  
  862.  
  863.  
  864.  
  865.  
  866.  
  867.  
  868.  
  869.                                                                 -13-
  870.  
  871. F4 - Deletes the current line. If the cursor is positioned on a text
  872.      line when you press this key and that line is the the only line
  873.      in your file, the cursor will automatically move to the command
  874.      line after the line is deleted since you now have a "null file".
  875.  
  876. F5 - Duplicates the current line.
  877.  
  878. F6 - This key, along with Shift-F6, allows you to use the keyboard to
  879.      type new lines of text into your file.
  880.  
  881.      If you press F6 or Shift-F6 while already in the process of typ-
  882.      ing new lines from the keyboard, then you will return to regular
  883.      edit mode.
  884.  
  885.      Before pressing F6, you must position the current line to the
  886.      line BEFORE which you wish to type the new line(s).
  887.  
  888.      You will note later on in this document that Shift-F6 is ident-
  889.      ical to F6 except that it allows you to type new lines AFTER the
  890.      current line.
  891.  
  892.      After you press F6, one of the following will happen:
  893.  
  894.        *  If the current line is the last text line (line 24) on the
  895.           screen, then all lines above the current line will scroll
  896.           up leaving a blank line for you to type the new line.
  897.  
  898.        *  In all other cases, all lines on the screen starting at the
  899.           current line will scroll down leaving a blank line for you
  900.           to type the new line.
  901.  
  902.      You may now type a new line in the space provided. After typing
  903.      the new line, press the ENTER key. The lines on the screen will
  904.      again scroll up or down leaving another blank line for you to
  905.      type the next line. If you wish to insert a blank line, simply
  906.      press the ENTER key without typing anything.
  907.  
  908.      You may type in as many lines as you wish. While you are in the
  909.      process of typing new lines, the words "ADD TEXT" are displayed
  910.      in columns 1-8 of the screen's bottom line.
  911.  
  912.      While adding a text line, you can press the TAB key to advance
  913.      the cursor to a point which is based on the word offsets on the
  914.      previous 5 non-blank lines. If the cursor is already past the
  915.      beginning of the last word of text on these lines, pressing the
  916.      TAB key will have no effect (the cursor does not move).
  917.  
  918.      Pressing Shift-TAB does the exact opposite of the TAB key when
  919.      adding a text line.
  920.  
  921.      Also while typing a new line, you can use the right arrow key
  922.      to duplicate the character which is just above the cursor pos-
  923.      ition on the previous line. When you do this, the character
  924.      insert flag is ignored, that is, you will get the same result
  925.      in character insert mode as in character overwrite mode.
  926.  
  927.  
  928.  
  929.                                                                 -14-
  930.  
  931.      If you press any of the keys listed below while typing new text
  932.      lines, the error "Key not valid while adding text" will appear:
  933.  
  934.        *  F4 - delete the current line
  935.        *  F5 - duplicate the current line
  936.        *  F7 - split the current line
  937.        *  Shift-F4 - restore deleted line(s)
  938.        *  Shift-F7 - join the current line to the previous line
  939.  
  940.  
  941.      Once you have finished typing new lines, do one of the following:
  942.  
  943.        *  Press function key F6 (or Shift-F6).
  944.        *  Press the ESCAPE key to move the cursor to the command line.
  945.        *  Press one of the line positioning keys (up or down arrow,
  946.           PAGE UP, PAGE DOWN, Ctrl-PAGE UP, or Ctrl-PAGE DOWN).
  947.        *  Press function key F9 (or Shift-F9) to search for the next
  948.           (or the previous) occurrence of a string.
  949.  
  950. F7 - Splits the current line at the current cursor position. All
  951.      characters starting at the cursor position are truncated from
  952.      the line. A new line made up of the truncated portion is then
  953.      added to the file after the current line. The new line then be-
  954.      comes the current line with the cursor positioned at column 1.
  955.  
  956.      If the column number is 1 at the time that you press function
  957.      key F7, then the entire line is moved down leaving a blank line
  958.      in its place.
  959.  
  960.      If you press function key F7 while the current column number is
  961.      past the last non-blank character of the current line, then the
  962.      newly formed line will be blank.
  963.  
  964. F8 - Save/exit key. Function key F8 is used to save your file and
  965.      also to end an edit session.
  966.  
  967.      When you press F8 and there are text changes to save, the sys-
  968.      tem proceeds to save your file. When the save is completed, the
  969.      message "File saved" is displayed.
  970.  
  971.      If you press F8 and there have not been any changes to the file
  972.      since the last save (or since you began the edit if this is the
  973.      first save), then the system will NOT perform the save and the
  974.      message "File unchanged" is displayed.
  975.  
  976.      To end an edit, press function key F8 while the message "File
  977.      saved" or "File unchanged" appears at the bottom of the screen.
  978.  
  979.      You may save your file as often as you like during an edit ses-
  980.      sion without ending the edit. At the time that you perform the
  981.      first save of your file, your original file will be renamed to
  982.      filename.BAK if you are using the backup option (see Section
  983.      9 - User ID function).
  984.  
  985. F9 - Searches for the next occurrence of a string (see Section 6.5).
  986.  
  987.  
  988.  
  989.                                                                 -15-
  990.  
  991. F10 - Replaces a string (see Section 6.6).
  992.  
  993. Shift-F1 - Displays the System Information screen (see Section 7).
  994.  
  995. Shift-F2 - Initiates the calculator (see Section 8).
  996.  
  997. Shift-F3 - Initiates the User ID function (see Section 9).
  998.  
  999. Shift-F4 - Restores (undeletes) lines that you have deleted from your
  1000.            file by using a delete command or by pressing function key
  1001.            F4.
  1002.  
  1003.            When you press Shift-F4, the line(s) most recently deleted
  1004.            are restored into your file.
  1005.  
  1006.            The system maintains a DELETE TABLE containing information
  1007.            needed to restore deleted lines. Each time that you delete
  1008.            a line or group of lines either by pressing F4 or by using
  1009.            the delete command, an entry is made in this table.
  1010.  
  1011.            The DELETE TABLE is LIFO (last in/first out) and can hold
  1012.            up to 20 entries. If you delete text and the table is al-
  1013.            ready at capacity, then the oldest entry is bumped from
  1014.            the table, for example:
  1015.  
  1016.              1.  You delete 10 lines using function key F4.
  1017.              2.  You then press Shift-F4 5 times to restore the last
  1018.                  5 lines deleted in step 1.
  1019.              3.  You then delete 18 more lines using function key F4.
  1020.              4.  At this point, you can restore the 18 lines that you
  1021.                  deleted in step 3 plus the 4th and 5th lines deleted
  1022.                  in step 1. But you cannot restore the first 3 lines
  1023.                  which were deleted in step 1 since these have been
  1024.                  bumped from the DELETE TABLE.
  1025.  
  1026.            When you press Shift-F4, the deleted line(s) will normally
  1027.            be restored into your file with their original line num-
  1028.            ber(s). However, lines inserted into the file may alter the
  1029.            position at which the lines are restored, for example:
  1030.  
  1031.              1.  You use the Delete command to delete lines 300-399.
  1032.              2.  You then insert 10 lines somewhere before line 300.
  1033.              3.  You then press Shift-F4 to restore the lines which
  1034.                  were deleted in step 1. The lines will be restored
  1035.                  into the file as lines 310-409.
  1036.  
  1037.            After line(s) are restored into your file, the current line
  1038.            is positioned at the first restored line. A message informs
  1039.            you how many lines were restored.
  1040.  
  1041. Shift-F5 - Writes a printer "forms feed" character into your file.
  1042.            This feature is provided for users writing documents who
  1043.            may wish to include page ejects for printing purposes.
  1044.  
  1045.            This function should not be used when writing programs,
  1046.            since the forms feed character can cause an error during
  1047.            compilation of your program.
  1048.  
  1049.                                                                 -16-
  1050.  
  1051. Shift-F6 - This key allows you to use the keyboard to type new lines
  1052.            into your file. Before pressing Shift-F6, you must position
  1053.            the current line to the line AFTER which you wish to type
  1054.            the new line(s).
  1055.  
  1056.            As described earlier, function key F6 performs the same
  1057.            task as Shift-F6, with the exception that function key F6
  1058.            allows you to type new lines BEFORE the current line.
  1059.  
  1060.            Shift-F6 is identical in all aspects to F6 other than the
  1061.            original positioning of the screen, which is as follows:
  1062.  
  1063.              *  If the current line is the last line (line 24) of the
  1064.                 screen, then all lines on the screen will scroll up
  1065.                 leaving a blank line for you to type the new line.
  1066.  
  1067.              *  In all other cases, all lines on the screen below the
  1068.                 current line will scroll down leaving a blank line for
  1069.                 you to type the new line.
  1070.  
  1071. Shift-F7 - Joins the current line to the previous line. The cursor
  1072.            position on the current line is not important at the time
  1073.            that this key is pressed, since the entire line will be
  1074.            joined to the previous line.
  1075.  
  1076.            After the lines have been joined, the joined line becomes
  1077.            the current line, with the cursor positioned at the first
  1078.            "joined" character.
  1079.  
  1080.            If you press Shift-F7 while the current line is the first
  1081.            line of your file, you will get the error message "Shift-F7
  1082.            not valid here".
  1083.  
  1084.            If you hit Shift-F7 by mistake, press function key F7 im-
  1085.            mediately to split the lines and thus "undo" the join.
  1086.  
  1087. Shift-F8 - Cancels the edit session without saving your file.
  1088.  
  1089.            If there have not been any changes to your file since the
  1090.            last save (or since you began the edit if there have been
  1091.            no saves), the edit will terminate immediately.
  1092.  
  1093.            If there ARE unsaved changes to your file when you press
  1094.            Shift-F8, then the following message will appear at the
  1095.            bottom of the screen:
  1096.  
  1097.                 Press Shift-F10 to verify cancel
  1098.  
  1099.            This message provides a safeguard in the case you press
  1100.            Shift-F8 by mistake. The message serves to warn you that
  1101.            you will lose changes to your file if you verify the can-
  1102.            cel. If you DO intend to cancel the edit, press Shift-F10
  1103.            and the edit will end with the message "Edit cancelled -
  1104.            changes lost".
  1105.  
  1106.            If you decide to continue with your edit rather than ver-
  1107.            ify the cancel, press any key other than Shift-F10.
  1108.  
  1109.                                                                 -17-
  1110.  
  1111. Shift-F9 - Searches for the previous occurrence of a string.
  1112.  
  1113. Ctrl-F1  - Displays the ascii chart. This will overlay the right hand
  1114.            portion of your screen. Use the up and down arrows and the
  1115.            PAGE UP/PAGE DOWN keys to view the entire chart. Pressing
  1116.            the ESCAPE key returns you to the edit.
  1117.  
  1118.  
  1119.  
  1120.  
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.  
  1127.  
  1128.  
  1129.  
  1130.  
  1131.  
  1132.  
  1133.  
  1134.  
  1135.  
  1136.  
  1137.  
  1138.  
  1139.  
  1140.  
  1141.  
  1142.  
  1143.  
  1144.  
  1145.  
  1146.  
  1147.  
  1148.  
  1149.  
  1150.  
  1151.  
  1152.  
  1153.  
  1154.  
  1155.  
  1156.  
  1157.  
  1158.  
  1159.  
  1160.  
  1161.  
  1162.  
  1163.  
  1164.  
  1165.  
  1166.  
  1167.  
  1168.  
  1169.                                                                 -18-
  1170.  
  1171. 5.  STARTING A NEW FILE
  1172.     -------------------
  1173.  
  1174. If you begin an edit and the system is unable to find the file that
  1175. you specified, it will assume that you are starting a new file. The
  1176. message "Starting new file" will appear at the bottom of the screen
  1177. and line 3 of the screen will contain "***** BOTTOM OF DATA *****".
  1178.  
  1179. This is called a "null-file" condition. Since there are no lines in
  1180. your file, there is no current line.
  1181.  
  1182. If you begin an edit of a file that contains no records (the file is
  1183. empty or contains only an end-of-file byte), then you will also be in
  1184. a "null-file" condition, but the message "Starting new file" will NOT
  1185. appear at the bottom of your screen.
  1186.  
  1187. The only function keys that you may use in a "null-file" situation
  1188. are:
  1189.  
  1190.     *  F1 (Help)
  1191.  
  1192.     *  F2 (Erase to end-of-line), but only to erase all or part of
  1193.        the command line.
  1194.  
  1195.     *  F6 (Type new lines before the current line)
  1196.  
  1197.     *  F8 (Save/Exit)
  1198.  
  1199.     *  Shift-F1 (Display the System Information Screen)
  1200.  
  1201.     *  Shift-F2 (Initiate the calculator)
  1202.  
  1203.     *  Shift-F3 (Initiate the User ID function)
  1204.  
  1205.     *  Shift-F6 (Type new lines after the current line)
  1206.  
  1207.     *  Shift-F8 (Cancel edit without saving)
  1208.  
  1209.     *  Ctrl-F1 (Display ascii chart)
  1210.  
  1211. The ONLY commands that are valid when you begin an edit of a null file
  1212. are the Insert commands (see Section 6.4).
  1213.  
  1214. If you find that you entered the file name incorrectly, cancel the
  1215. edit by pressing Shift-F8. A new file will NOT be created.
  1216.  
  1217. Otherwise, do one of the following:
  1218.  
  1219.     *  Press function key F6 to begin typing lines from the keyboard.
  1220.  
  1221.     *  Insert text lines into your file from another file by using one
  1222.        of the Insert commands.
  1223.  
  1224.  
  1225.  
  1226.  
  1227.  
  1228.  
  1229.                                                                 -19-
  1230.  
  1231. Once your file contains at least one line of text, then all other com-
  1232. mands and function keys will become available to you.
  1233.  
  1234. You can also get into a "null file" condition if you delete all of the
  1235. lines in your file. In this case, the command and function key limita-
  1236. tions are the same as those described for starting a new file, except
  1237. that you can use function key Shift-F4 to restore deleted lines into
  1238. your file.
  1239.  
  1240. The message "***** BOTTOM OF DATA *****" NEVER appears on your screen
  1241. unless your file contains less than 22 lines of text (less than a full
  1242. page).
  1243.  
  1244.  
  1245.  
  1246.  
  1247.  
  1248.  
  1249.  
  1250.  
  1251.  
  1252.  
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258.  
  1259.  
  1260.  
  1261.  
  1262.  
  1263.  
  1264.  
  1265.  
  1266.  
  1267.  
  1268.  
  1269.  
  1270.  
  1271.  
  1272.  
  1273.  
  1274.  
  1275.  
  1276.  
  1277.  
  1278.  
  1279.  
  1280.  
  1281.  
  1282.  
  1283.  
  1284.  
  1285.  
  1286.  
  1287.  
  1288.  
  1289.                                                                 -20-
  1290.  
  1291. 6.  COMMANDS
  1292.     --------
  1293.  
  1294. The AM-EDIT commands are listed below. Commands are entered on line
  1295. 2 of the screen. A command may be entered in upper case, lower case,
  1296. or a combination of upper and lower case.
  1297.  
  1298.     D      - Delete one or more lines
  1299.     M      - Move one or more lines
  1300.     C      - Copy one or more lines
  1301.     I/IA   - Insert lines into your file from another file
  1302.     F/FI   - Find a text string [with option to replace it].
  1303.     FF/FFI - Find the first occurrence of a text string within your
  1304.              file [with option to replace it].
  1305.     FL/FLI - Find the last occurrence of a text string within your
  1306.              file [with option to replace it].
  1307.     P1     - Print all or part of your file on printer LPT1.
  1308.     P2     - Print all or part of your file on printer LPT2.
  1309.     P3     - Print all or part of your file on printer LPT3.
  1310.     PF1    - Write a form feed character to printer LPT1.
  1311.     PF2    - Write a form feed character to printer LPT2.
  1312.     PF3    - Write a form feed character to printer LPT3.
  1313.     T      - Trace and highlight the lines in your file which have
  1314.              been added, moved, or changed since you began the edit.
  1315.  
  1316. As discussed earlier, you may use the command line to set the position
  1317. of the current line. To do this, enter the line number on the command
  1318. line and press the ENTER key.
  1319.  
  1320. If the cursor is positioned on the command line and you wish to edit a
  1321. text line, then press the ESCAPE key to clear the command line (unless
  1322. already clear) and then press one of the following keys:
  1323.  
  1324.     *  ENTER key - This will position the cursor at the current column
  1325.                    number of the current text line.
  1326.  
  1327.     *  HOME key  - This moves the cursor to the first non-blank char-
  1328.                    acter of the current text line (or column 1 if the
  1329.                    line is blank).
  1330.  
  1331.     *  END key   - This positions the cursor at the column after the
  1332.                    last non-blank character of the current text line.
  1333.                    If the last column of the line (column 1024) is not
  1334.                    blank, the cursor is positioned at that column.
  1335.  
  1336.     *  TAB key   - Positions the cursor at the current column number
  1337.                    of the current line and then processes the TAB key
  1338.                    as if it had been pressed at that point.
  1339.  
  1340.  
  1341.  
  1342.  
  1343.  
  1344.  
  1345.  
  1346.  
  1347.  
  1348.  
  1349.                                                                 -21-
  1350.  
  1351. 6.1  DELETE COMMAND
  1352.      --------------
  1353.  
  1354. The Delete command allows you to delete any number of lines from your
  1355. file. To delete a single line, you would normally use function key F4,
  1356. since this key can also be used while the cursor is positioned on the
  1357. text line which is to be deleted.
  1358.  
  1359. Each time that you delete text, either by using the Delete command or
  1360. by pressing function key F4, an entry is made into the "Delete Table".
  1361. This table makes it possible for you to restore deleted line(s) at any
  1362. later time, should you find it necessary  (see function key Shift-F4 -
  1363. restore lines). Since the "Delete Table" can hold only 20 entries, you
  1364. are advised to use the Delete command rather than function key F4 when
  1365. deleting a consecutive string of lines.
  1366.  
  1367. For example, if you wished to delete the first 25 lines of your file,
  1368. you could press function key F4 a total of 25 times to accomplish the
  1369. task. But at that point, you could only restore the last 20 deleted
  1370. lines by using function key Shift-F4, and you would be unable to re-
  1371. store any lines that may have been previously deleted.
  1372.  
  1373. But if you used the Delete command to delete the 25 lines as a group,
  1374. only a single entry would have been made into the delete table. You
  1375. could then restore all 25 lines by pressing Shift-F4 just once.
  1376.  
  1377. To execute the Delete command, do the following:
  1378.  
  1379.     *  Position the current line at either the first or the last line
  1380.        that you wish to delete.
  1381.  
  1382.     *  If the cursor is positioned on a text line, press the ESCAPE
  1383.        key to get to the command line.
  1384.  
  1385.     *  Enter "d" (or "D") on the command line.
  1386.  
  1387.     *  Position the current line to the opposite end of the range of
  1388.        lines to be deleted. Unless line numbers are suppressed, the
  1389.        line number of each line to be deleted will be highlighted. The
  1390.        highlighted letter "d" will appear to the left of each line to
  1391.        be deleted.
  1392.  
  1393.        The word "DELETE" will be displayed in columns 1-6 of line 25
  1394.        to remind you that a Delete command is in progress.
  1395.  
  1396.     *  Once all lines to be deleted are marked, press the ENTER key.
  1397.        The lines will immediately disappear from your screen.
  1398.  
  1399. You may cancel the Delete command at any time before you press ENTER
  1400. by pressing the ESCAPE key.
  1401.  
  1402. After the completion of a Delete command, a message is displayed at
  1403. the bottom of the screen showing the number of lines deleted.
  1404.  
  1405. If you deleted all lines in your file, you will be in a "null file"
  1406. condition (see Section 5). Otherwise, after completion of the Delete
  1407. command, the current line is positioned as follows:
  1408.  
  1409.                                                                 -22-
  1410.  
  1411.     *  If the line(s) deleted included the last line of your file,
  1412.        the current line becomes the line which is now the last line
  1413.        of your file.
  1414.  
  1415.     *  In all other cases, the current line is positioned at the line
  1416.        which followed the last line that was deleted.
  1417.  
  1418. You may delete any number of lines with this command. For example, to
  1419. delete lines 100 through 222 of your file, do the following:
  1420.  
  1421.     *  Position the current line at line 100. You can do this by using
  1422.        the up/down arrows, by using the PAGE UP/PAGE DOWN keys, or by
  1423.        entering "100" on the command line and pressing the ENTER key.
  1424.     *  If the cursor is positioned on a text line, press the ESCAPE
  1425.        key to move the cursor to the command line.
  1426.     *  Enter "d" on the command line.
  1427.     *  Use the down arrow and/or PAGE DOWN key until the current line
  1428.        is line 222. If you go past line 222, use the up arrow and/or
  1429.        PAGE UP key to back up.
  1430.     *  Press ENTER to complete the deletion.
  1431.  
  1432. You could also delete lines 100 through 222 by doing the following:
  1433.  
  1434.     *  Position the current line at line 222 of your text.
  1435.     *  If the cursor is positioned on a text line, press the ESCAPE
  1436.        key to move the cursor to the command line.
  1437.     *  Enter "d" on the command line.
  1438.     *  Use the up arrow and/or PAGE UP key until the current line is
  1439.        line 100. If you go past line 100, use the down arrow and/or
  1440.        PAGE DOWN key to back up.
  1441.     *  Press ENTER to complete the deletion.
  1442.  
  1443. Note that you can use function key F9 (find next occurrence of a text
  1444. string) or Shift-F9 (find previous occurrence of a text string) when
  1445. positioning the current line during any Delete command. However, you
  1446. must first establish the text string by using a find command.
  1447.  
  1448. As an example, suppose you wish to delete a segment called "tempseg"
  1449. from a program which is written in assembler. Since you know that the
  1450. first and the last lines of the segment begin with the word "tempseg",
  1451. you can do the following:
  1452.  
  1453.     *  Enter the command "FF tempseg". This will locate the first oc-
  1454.        currence of the string "tempseg" within your file.
  1455.     *  Press the ESCAPE key to move the cursor to the command line.
  1456.     *  Enter "d" on the command line.
  1457.     *  Press function key F9. The current line will be positioned at
  1458.        the last line of the segment "tempseg", and all of the lines
  1459.        within the segment "tempseg" will be marked for deletion.
  1460.     *  Press ENTER to complete the deletion.
  1461.  
  1462. Whenever you press function key F9 or Shift-F9 while a Move, Copy, or
  1463. Delete command is in progress, the cursor remains on the command line
  1464. after the string is found. In all other cases, the cursor is position-
  1465. ed at the first character of the "found" string on the text line.
  1466.  
  1467.  
  1468.  
  1469.                                                                 -23-
  1470.  
  1471. 6.2  MOVE COMMAND
  1472.      ------------
  1473.  
  1474. The Move command allows you to move (relocate) one of more lines of
  1475. text within your file.
  1476.  
  1477. To execute the Move command, do the following:
  1478.  
  1479.     *  Position the current line to either the first or the last line
  1480.        that you wish to move.
  1481.  
  1482.     *  If the cursor is positioned on a text line, press the ESCAPE
  1483.        key to get to the command line.
  1484.  
  1485.     *  Enter "M" (or "m") on the command line.
  1486.  
  1487.     *  Position the current line to the opposite end of the range of
  1488.        lines to be moved. Unless line numbers are suppressed, the
  1489.        line number of each line to be moved will be highlighted. The
  1490.        highlighted letter "m" will appear to the left of each line to
  1491.        be moved.
  1492.  
  1493.        The word "MOVE" will be displayed in columns 1-4 of line 25 to
  1494.        remind you that a Move command is in progress.
  1495.  
  1496.     *  Once all lines to be moved are marked:
  1497.  
  1498.          *  Enter "A" on the command line after the "M" if you are
  1499.             moving the lines after a target line.
  1500.  
  1501.          *  Enter "B" on the command line after the "M" if you are
  1502.             moving the lines before a target line.
  1503.  
  1504.     *  Position the current line to the target line of the move.
  1505.  
  1506.     *  Press ENTER to complete the move.
  1507.  
  1508. You may cancel the Move command at any time before pressing ENTER by
  1509. pressing the ESCAPE key (ESC).
  1510.  
  1511. To move a single line of text, enter "M A" or "M B" on the command
  1512. line before positioning the current line to the target line of the
  1513. move.
  1514.  
  1515. After the completion of a Move command, the current line becomes the
  1516. first line moved, and the number of lines moved is displayed at the
  1517. bottom of the screen.
  1518.  
  1519. You can move any number of lines with this command. For example, to
  1520. move lines 200 through 345 after line 512, do the following:
  1521.  
  1522.     *  Position the current line at line 200 of your file by using the
  1523.        up/down arrows, by using the PAGE UP and PAGE DOWN keys, or by
  1524.        entering "200" on the command line and pressing the ENTER key.
  1525.     *  If the cursor is positioned on a text line, press the ESCAPE
  1526.        key to move the cursor to the command line.
  1527.  
  1528.  
  1529.                                                                 -24-
  1530.  
  1531.     *  Enter "m" on the command line.
  1532.     *  Use the down arrow and/or PAGE DOWN key until the current line
  1533.        is line 345. If you go past line 345, use the up arrow and/or
  1534.        PAGE UP key to back up.
  1535.     *  Enter "a" on the command line. You will notice that the cursor
  1536.        was already positioned one space away from the "m" on the com-
  1537.        mand line. The command line now contains "m a".
  1538.     *  Use the down arrow and/or PAGE DOWN key until the current line
  1539.        is line 512. If you go past line 512, use the up arrow and/or
  1540.        PAGE UP key to back up.
  1541.     *  Press ENTER to complete the move.
  1542.  
  1543. Note that like the Delete command, you can use function keys F9 and
  1544. Shift-F9 when positioning the current line. In the example above, you
  1545. could have used F9 or Shift-F9 when positioning to line 200 and/or to
  1546. line 345 and/or to line 512.
  1547.  
  1548.  
  1549.  
  1550. 6.3  COPY COMMAND
  1551.      ------------
  1552.  
  1553. The Copy command allows you to copy (duplicate) one of more lines of
  1554. text within your file. You may copy as many lines as you wish.
  1555.  
  1556. To execute the Copy command, do the following:
  1557.  
  1558.     *  Position the current line to either the first or the last line
  1559.        that you wish to copy.
  1560.  
  1561.     *  If the cursor is positioned on a text line, press the ESCAPE
  1562.        key to get to the command line.
  1563.  
  1564.     *  Enter "C" (or "c") on the command line.
  1565.  
  1566.     *  Position the current line to the opposite end of the range of
  1567.        lines to be copied. Unless line numbers are suppressed, the
  1568.        line number of each line to be copied will be highlighted. The
  1569.        highlighted letter "c" will appear to the left of each line to
  1570.        be copied, and the word "COPY" will be displayed in columns 1-4
  1571.        of line 25 to remind you that a Copy command is in progress.
  1572.  
  1573.     *  Once all lines to be copied are marked:
  1574.  
  1575.        *  Enter "A" on the command line after the "C" if you are
  1576.           copying the lines after a target line.
  1577.  
  1578.        *  Enter "B" on the command line after the "C" if you are
  1579.           copying the lines before a target line.
  1580.  
  1581.     *  Position the current line to the target line of the copy.
  1582.  
  1583.     *  Press ENTER to complete the copy.
  1584.  
  1585. You may cancel the Copy command at any time before you press ENTER
  1586. by hitting the ESCAPE key (ESC).
  1587.  
  1588.  
  1589.                                                                 -25-
  1590.  
  1591. To copy a single line, enter "C A" or "C B" on the command line be-
  1592. fore positioning the current line to the target line of the copy.
  1593.  
  1594. After the completion of a Copy command, the current line becomes the
  1595. first line added to the file as a result of the command, and the num-
  1596. ber of lines copied is displayed at the bottom of the screen.
  1597.  
  1598. You can copy any number of lines with this command. For example, to
  1599. copy lines 99 through 122 before line 200, do the following:
  1600.  
  1601.     *  Position the current line at line 99 of your file by using the
  1602.        up/down arrows, by using the PAGE UP and PAGE DOWN keys, or by
  1603.        entering "99" on the command line and pressing ENTER.
  1604.     *  If the cursor is positioned on a text line, press the ESCAPE
  1605.        key to move the cursor to the command line.
  1606.     *  Enter "c" on the command line.
  1607.     *  Use the down arrow and/or PAGE DOWN key until the current line
  1608.        is line 122. If you go past line 122, use the up arrow and/or
  1609.        PAGE UP key to back up.
  1610.     *  Enter "b" on the command line. You will notice that the cursor
  1611.        was already positioned one space away from the "c" on the com-
  1612.        mand line. The command line now contains "c b".
  1613.     *  Use the down arrow and/or PAGE DOWN key until the current line
  1614.        is line 200. If you go past line 200, use the up arrow or PAGE
  1615.        UP key to back up.
  1616.     *  Press ENTER to complete the copy.
  1617.  
  1618. Note that like the Delete and Move commands, you can use function keys
  1619. F9 and Shift-F9 when positioning the current line. In the above exam-
  1620. ple, you could have used F9 or Shift-F9 when positioning to line 99
  1621. and/or line 122 and/or line 200.
  1622.  
  1623. If you have an extended keyboard (101/102 keys), you can do a "repeat
  1624. copy", that is, you can more conveniently copy the same line or group
  1625. of lines to more than one destination within your file.
  1626.  
  1627. To do this, press the ENTER key on the extreme right hand side of your
  1628. keyboard to complete a copy instead of the normal ENTER key. You will
  1629. remain in COPY mode and the lines that were marked for copying will
  1630. stay marked. You can then set the current line to a new target line
  1631. and press either one of the ENTER keys again.
  1632.  
  1633. In addition to the Copy command, you can use function key F5 to copy
  1634. the current line after itself. Function key F5 can be used while the
  1635. cursor is positioned on either the command line or a text line.
  1636.  
  1637.  
  1638.  
  1639.  
  1640.  
  1641.  
  1642.  
  1643.  
  1644.  
  1645.  
  1646.  
  1647.  
  1648.  
  1649.                                                                 -26-
  1650.  
  1651. 6.4  INSERT COMMANDS
  1652.      ---------------
  1653.  
  1654. The Insert commands are used to insert lines into your file from other
  1655. files.
  1656.  
  1657. The point at which the lines are inserted is based on the location of
  1658. the current line. You must therefore position this line before you
  1659. issue the Insert command.
  1660.  
  1661. There are two forms of the Insert command; one to insert lines before
  1662. the current line and the other to insert lines after the current line.
  1663.  
  1664. To insert lines BEFORE the current line, enter "I" on the command line
  1665. followed by the name of the file from which the lines of text are to
  1666. be inserted, for example:
  1667.  
  1668.     I workfile.doc
  1669.  
  1670. To insert lines AFTER the current line, enter "IA" on the command line
  1671. followed by the name of the file from which the lines are to be in-
  1672. serted, for example:
  1673.  
  1674.     ia WORKFILE.Doc
  1675.  
  1676. If the file from which lines are to be inserted is not in the current
  1677. directory, you must enter the full path name. The "current directory"
  1678. is the directory you were in at the time that you executed AM-EDIT.
  1679.  
  1680. For example, if you were in directory C:\AMEDIT when you executed the
  1681. editor and you wish to insert the file WORK.TXT which is in directory
  1682. C:\JACK\UTILS, you would enter:
  1683.  
  1684.     i c:\jack\utils\work.txt
  1685.  
  1686.     OR
  1687.  
  1688.     ia C:\JACK\UTILS\WORK.TXT
  1689.  
  1690. The file that you specify in an Insert command must be a valid text
  1691. file which contains at least one line of text. The file that you are
  1692. inserting from CAN be the same file that you are editing.
  1693.  
  1694. If you do not know or cannot remember the name of the file that you
  1695. wish to insert, you can do a directory search by just entering the
  1696. command "I" or "IA" without an argument and pressing the ENTER key.
  1697. Or, you can enter a partial directory path and/or use the global file
  1698. name characters (* and ?) to initiate the directory search as on the
  1699. file-to-edit screen.
  1700.  
  1701. After the line(s) have been inserted into your file, a message at the
  1702. bottom of the screen tells you how many lines were inserted, and the
  1703. current line becomes the first inserted line.
  1704.  
  1705.  
  1706.  
  1707.  
  1708.  
  1709.                                                                 -27-
  1710.  
  1711. 6.5  FIND COMMANDS
  1712.      -------------
  1713.  
  1714. The Find commands allow you to search for a text string within your
  1715. file. To execute a Find command, do the following:
  1716.  
  1717.     *  Enter one of the following commands on the command line:
  1718.  
  1719.        *  "F" if you wish to start the search at the column just to
  1720.            the right of the current column position of the current
  1721.            text line.
  1722.  
  1723.        *  "FF" if you wish to find the first occurrence of the text
  1724.            string within your file.
  1725.  
  1726.        *  "FL" if you wish to find the last occurrence of the text
  1727.            string within your file.
  1728.  
  1729.     *  Enter the text string that you wish to search for. Separate
  1730.        the string from the command by at least one space. The search
  1731.        string cannot be a null string ("" or '').
  1732.  
  1733.     *  Press the ENTER key to start the search.
  1734.  
  1735. To ignore case during a search, use FI, FFI, or FLI as the command.
  1736. For example, while the command "F ab" will only search for the value
  1737. "ab", the command "FI ab" will search for "ab", "Ab", "aB", and "AB".
  1738.  
  1739. The string does not need to be enclosed in quotes unless it contains
  1740. a space or if it begins with a quote or double quote. For example:
  1741.  
  1742.     Invalid:  f GO TO          Valid:   f 'GO TO' or f "GO TO"
  1743.     Invalid:  FF 'a            Valid:   FF "'a"
  1744.     Invalid:  fli "abcd        Valid:   fli '"abcd'
  1745.  
  1746. Once a string is found within your text, the "found" string is high-
  1747. lighted and the line containing the string becomes the current line.
  1748. If you are within a Move, Copy, or Delete command, the cursor remains
  1749. on the command line. Otherwise, the cursor is positioned at the first
  1750. character of the "found" text string.
  1751.  
  1752. If the text string is not found, you will get the error message
  1753. "'string' not found".
  1754.  
  1755. Function key F9 may be used to find the next occurrence of the string
  1756. defined in the most recent Find command. When you press F9, the search
  1757. begins at the column just to the right of the current column position
  1758. of the current line. If a non-found condition results, you can press
  1759. F9 again to restart the search at the beginning of the file.
  1760.  
  1761. Function key Shift-F9 may be used to find the previous occurrence of
  1762. the string defined in the most recent Find command. When this key is
  1763. pressed, the search begins at the column to the left of the current
  1764. column position of the current line. If a not-found condition results,
  1765. you can press Shift-F9 again to restart the search at the end of the
  1766. file.
  1767.  
  1768.  
  1769.                                                                 -28-
  1770.  
  1771. 6.6  FIND COMMAND WITH OPTION TO REPLACE
  1772.      -----------------------------------
  1773.  
  1774. To use a Find command with the option to replace a text string, enter
  1775. a second string after the search string. The second string entered is
  1776. called the "replacement" string. The replacement string must be sepa-
  1777. rated from the search string by at least one space.
  1778.  
  1779. The replacement string CAN be identical to the search string.
  1780.  
  1781. Like the search string, the replacement string does not need to be en-
  1782. closed in quotes unless it contains a space or it begins with a quote
  1783. or double quote.
  1784.  
  1785. Unlike the search string, the replacement string can be a null string,
  1786. for example, the following is a valid command:
  1787.  
  1788.     F 'word one' ''
  1789.  
  1790. In the above example, you are replacing the string "word one" with a
  1791. null string.
  1792.  
  1793. The Find-and-replace command works the same as the Find command with
  1794. the exception that each time that the search string is located within
  1795. your file and the cursor is positioned at that string, the value "F10"
  1796. will appear in columns 13-15 of the screen's bottom line. The purpose
  1797. of this is to inform you that function key F10 is now enabled, and you
  1798. may press F10 at that point to replace the search string with the re-
  1799. placement string.
  1800.  
  1801. If you DO wish to replace the search string, press function key F10
  1802. immediately. The string will be replaced and the system will search
  1803. for the NEXT occurrence of the search string. If you do not wish to
  1804. replace the string, you may press function key F9 to find the next
  1805. occurrence of the search string or function key Shift-F9 to find the
  1806. previous occurrence.
  1807.  
  1808. Note that function key F10 is enabled only under the follow circum-
  1809. stances:
  1810.  
  1811.     *  You are within a find-and-replace command.
  1812.  
  1813.     *  The cursor is positioned at the first column of the "found"
  1814.        text string.
  1815.  
  1816.     *  The "found" string is highlighted.
  1817.  
  1818.     *  The value "F10" appears in columns 13-15 of the bottom line
  1819.        of the screen.
  1820.  
  1821. If you press function key F10 at any other time, you will get the
  1822. error message "Key not enabled at this time".
  1823.  
  1824.  
  1825.  
  1826.  
  1827.  
  1828.  
  1829.                                                                 -29-
  1830.  
  1831. 6.7  FIND AND REPLACE ALL
  1832.      --------------------
  1833.  
  1834. To replace ALL occurrences of a text string, enter the keyword "A" or
  1835. "ALL" after the replacement string on the command line.
  1836.  
  1837. You must separate the keyword from the replacement string by one or
  1838. more spaces.
  1839.  
  1840. The system will replace ALL occurrences of the search string in your
  1841. file with the replacement string.
  1842.  
  1843. Examples of find-and-replace-all commands are:
  1844.  
  1845.    F PIC PICTURE a
  1846.  
  1847.    or
  1848.  
  1849.    f PIC PICTURE aLL
  1850.  
  1851. In the above examples, you are replacing all occurrences of the text
  1852. string "PIC" with the text string "PICTURE".
  1853.  
  1854. After the completion of a find-and-replace-all command, the position
  1855. of the current line remains unchanged, and the cursor remains posi-
  1856. tioned on the command line. A message at the bottom of the screen will
  1857. tell you how many occurrences of the search string were replaced.
  1858.  
  1859. It is possible that when you are replacing all occurrences of a text
  1860. string with a longer text string, one of more lines in your file may
  1861. exceed the maximum record length of 1024 characters. If this should
  1862. occur, the lines which exceed the maximum length will be truncated to
  1863. 1024 characters in length and the message that informs you of the num-
  1864. ber of string replacements will also give you a count of the number of
  1865. lines that were truncated.
  1866.  
  1867. Since the replacement string CAN be the same as the search string, you
  1868. can use the find-and-replace-all command to determine the number of
  1869. occurrences of a particular string within your file.
  1870.  
  1871. For example, the command "f simply simply all" will give you a count
  1872. of the number of times that the word "simply" appears in your file.
  1873.  
  1874.  
  1875.  
  1876.  
  1877.  
  1878.  
  1879.  
  1880.  
  1881.  
  1882.  
  1883.  
  1884.  
  1885.  
  1886.  
  1887.  
  1888.  
  1889.                                                                 -30-
  1890.  
  1891. 6.8  PRINT COMMANDS
  1892.      --------------
  1893.  
  1894. The Print commands provide an alternative to using the DOS print com-
  1895. mand to get a printer listing of your text file. These commands allow
  1896. you to produce a more orderly listing, and allow you to print only a
  1897. portion of your file if you so desire.
  1898.  
  1899. When you use a Print command, all lines from the current line to the
  1900. end of the file will be printed. You must therefore position the cur-
  1901. rent line to the first line that you wish to print before you issue
  1902. the command.
  1903.  
  1904. The User ID Function (see Section 9) allows you to set the following
  1905. parameters for printing:
  1906.  
  1907.     *  Whether or not to print the file name at the top of each page
  1908.        of your listing.
  1909.  
  1910.     *  Whether or not line numbers are to be included in the listing.
  1911.  
  1912.     *  The maximum number of lines to be printed on a page.
  1913.  
  1914. The valid Print commands are "P1", "P2" and "P3".
  1915.  
  1916. The command "P1" will route the printed output to the printer desig-
  1917. nated as LPT1.
  1918.  
  1919. Use the command "P2" if you wish to route the printed output to the
  1920. printer designated as LPT2, or "P3" if you wish to route the output
  1921. to the printer designated as LPT3.
  1922.  
  1923. You may also use the commands "PF1", "PF2" and "PF3" to issue form
  1924. feed commands to the printers.
  1925.  
  1926. The Print commands provide an easy method for you to list any portion
  1927. of your file, complete with the correct line numbers. For example, to
  1928. print lines 244-456 of a 900-line file:
  1929.  
  1930.     *  Delete lines 457-900 by doing the following:
  1931.          *  Enter "457" on the command line and press the ENTER key
  1932.          *  Enter "d" on the command line
  1933.          *  Press Ctrl-Page Down
  1934.          *  Press the ENTER key to completion the deletion
  1935.     *  Position the current line at line 244
  1936.     *  Issue the Print command
  1937.     *  Press function key Shift-F4 to restore lines 457-900
  1938.  
  1939. The ability to print any range of lines is especially useful when you
  1940. encounter a problem with your printer in the middle of a listing.
  1941.  
  1942. You should be aware that the first command issued to a printer during
  1943. an edit will initialize that printer, which will nullify any settings
  1944. that you may have made. You should thus issue a form feed command to
  1945. the printer and then make your settings before you issue a print.
  1946.  
  1947.  
  1948.  
  1949.                                                                 -31-
  1950.  
  1951. 6.9  TRACE COMMAND
  1952.      -------------
  1953.  
  1954. The Trace command allows you to locate all lines within your file that
  1955. have been added, moved, copied, or changed since you began the edit.
  1956. Lines that have been deleted cannot be traced, but can be restored by
  1957. using function key Shift-F4.
  1958.  
  1959. To initiate the command, enter "T" on the command line and press the
  1960. ENTER key. If there are no added or altered lines to display, the mes-
  1961. sage "End of data" will appear at the bottom of the screen.
  1962.  
  1963. Otherwise, the cursor will be positioned at the first added or altered
  1964. line in your file. That line will be highlighted, and one of the fol-
  1965. lowing messages will appear at the bottom of the screen:
  1966.  
  1967.     *  Line changed                *  Line added by copy/changed
  1968.     *  Line moved                  *  Line added by copy/moved
  1969.     *  Line moved/changed          *  Line added by copy/moved/changed
  1970.     *  Line added                  *  Line inserted
  1971.     *  Line added/changed          *  Line inserted/changed
  1972.     *  Line added/moved            *  Line inserted/moved
  1973.     *  Line added/moved/changed    *  Line inserted/moved/changed
  1974.     *  Line added by copy
  1975.  
  1976. To find the next added or altered line, press ENTER again. Once all
  1977. added and altered lines have been located, the message "End of data"
  1978. will appear. You can cancel the Trace command at any time by pressing
  1979. the ESCAPE key or by entering a different command.
  1980.  
  1981. You can use the up/down arrows and the PAGE UP/PAGE DOWN keys to skip
  1982. over lines or to back up while doing a trace.
  1983.  
  1984. The following rules apply:
  1985.  
  1986.     *  The user can change a line by typing over all or a portion of
  1987.        the line, or by inserting new characters into the line. A line
  1988.        can also be changed by a find-and-replace command, by a "split
  1989.        line" command, or by a "join line" command. There is no way to
  1990.        tell how many times a particular line has been changed.
  1991.  
  1992.     *  If a line has been both changed and moved, there is no way to
  1993.        tell if the line was changed before it was moved or after it
  1994.        was moved.
  1995.  
  1996.     *  If a line is moved and later moved back to it's original posi-
  1997.        tion within the file, it is still marked as "moved".
  1998.  
  1999.     *  If a line is changed and is later changed back to its original
  2000.        format, it is still marked as "changed". The one exception is
  2001.        if you use function key F3 to restore a line.
  2002.  
  2003.     *  If a line is changed and then copied, the line which was added
  2004.        to the file as a result is marked as "added by copy" but is not
  2005.        marked as "changed".
  2006.  
  2007.  
  2008.  
  2009.                                                                 -32-
  2010.  
  2011. 7.  SYSTEM INFORMATION SCREEN
  2012.     -------------------------
  2013.  
  2014. The System Information Screen is displayed when you press function key
  2015. Shift-F1. This screen will overlay your edit screen. You can return to
  2016. the edit screen by pressing any key.
  2017.  
  2018. Since the information displayed on this screen required some gathering
  2019. of information, there may be a short pause before the screen appears.
  2020.  
  2021. The following information appears on the System Information Screen:
  2022.  
  2023.   *  The current date and time.
  2024.  
  2025.   *  The amount of memory available on your computer for text storage.
  2026.  
  2027.   *  The amount of memory currently being used for storage of text.
  2028.  
  2029.   *  The amount of memory unused.
  2030.  
  2031.   *  The search string defined in the most recent find or find-and-
  2032.      replace command. This is the value that the system will search
  2033.      for if you press function key F9 or Shift-F9. If you have not
  2034.      yet used a find command, then the value "None" is displayed.
  2035.  
  2036.   *  The "replacement" string defined in the most recent find-and-
  2037.      replace command. If you have not yet used a find command with
  2038.      the option to replace, the value "None" is displayed.
  2039.  
  2040.   *  The size (length) of the longest record in your file.
  2041.  
  2042.   *  The number of records having the length of the longest record.
  2043.  
  2044.   *  The line number of the first record in your file which has the
  2045.      length of the longest record.
  2046.  
  2047.   *  A file update summary containing the following:
  2048.  
  2049.      *  Starting line count. This is the number of lines that were
  2050.         in the file when you began the edit.
  2051.  
  2052.      *  The number of lines that you have added to your file either
  2053.         by typing from the keyboard, by copying lines, by splitting
  2054.         lines, or by inserting lines from other files. This does NOT
  2055.         include lines that were added, but have since been deleted.
  2056.  
  2057.      *  The number of lines that have been changed one or more times
  2058.         during the edit. This does NOT include lines that were changed
  2059.         but have since been deleted from the file.
  2060.  
  2061.      *  The number of lines that have been deleted from the file since
  2062.         the edit began. This does NOT include lines that were deleted
  2063.         and then restored into the file.
  2064.  
  2065.      *  Current line count. This is the number of lines that are
  2066.         currently in the file.
  2067.  
  2068.  
  2069.                                                                 -33-
  2070.  
  2071. 8.  USING THE CALCULATOR
  2072.     --------------------
  2073.  
  2074. The calculator is initiated by pressing Shift-F2. Initiation of the
  2075. calculator does not interfere in any way with the editing of your
  2076. text. When initiated, the calculator will occupy a window overlaying
  2077. the right half of your edit screen.
  2078.  
  2079. You may press function key F1 at any time while using the calculator
  2080. to get immediate on-screen help.
  2081.  
  2082. The calculator total is a 32-bit unsigned integer. You will see the
  2083. total displayed at the bottom of the calculator window in three dif-
  2084. ferent formats; decimal, hexadecimal, and binary.
  2085.  
  2086. If you add an amount to the total which causes the total to overflow
  2087. (the result exceeds decimal 4,294,967,295), the total becomes the
  2088. amount of the overflow. For example, if you add 12 to 4294967295,
  2089. the total becomes 11.
  2090.  
  2091. If you multiply the total by an amount which causes an overflow of the
  2092. total, the alarm will sound and the transaction is ignored.
  2093.  
  2094. The calculator has two input fields; a function and an amount. There
  2095. are 2 types of functions; those that require an amount and those which
  2096. do not. The functions that do not require an amount are:
  2097.  
  2098.    B   Set base. If the current base is decimal, the base becomes hex
  2099.        and the hex total is highlighted. If the current base is hex,
  2100.        the base becomes binary and the binary total is highlighted.
  2101.        If the current base is binary, the base becomes decimal and
  2102.        the decimal total is highlighted.
  2103.  
  2104.    D   Set the number of digits which are allowed to the right of the
  2105.        decimal point. The number may be 0, 1, or 2. This number ap-
  2106.        plies ONLY to the decimal total and decimal input amount.
  2107.  
  2108.    N   Perform a Logical NOT on the total. This inverts (forms one's
  2109.        complement of) the total.
  2110.  
  2111.    U   Erase (undo) the most recent function/amount transaction, and
  2112.        adjust the totals accordingly. You can not erase any transac-
  2113.        tion other than the most recent.
  2114.  
  2115.    R   Repeat the most recent function/amount transaction.
  2116.  
  2117.    C   Clear the calculator. The totals are reset and the transaction
  2118.        display area is blanked. If the calculator is already cleared,
  2119.        then you are returned to your edit. Pressing the ESCAPE key
  2120.        performs the same function.
  2121.  
  2122. The functions that require an amount are:
  2123.  
  2124.    +   Add the amount to the total.
  2125.  
  2126.    -   Subtract the amount from the total.
  2127.  
  2128.  
  2129.                                                                 -34-
  2130.  
  2131.    *   Multiply the total by the amount.
  2132.  
  2133.    /   Divide the the amount into the total.
  2134.  
  2135.    A   Perform a Logical AND (bit logical conjuction) of the amount
  2136.        and the total and return the result to the total.
  2137.  
  2138.    O   Perform a Logical OR (bit-logical inclusive disjuction) of the
  2139.        amount and the total and return the result to the total.
  2140.  
  2141.    X   Perform a Logical XOR (bit-to-bit logical exclusive disjuction)
  2142.        of the amount and the total returning the result to the total.
  2143.  
  2144. After entering one of the functions listed above, you are prompted for
  2145. an amount.
  2146.  
  2147. If the current base is decimal, the amount must be a numeric number of
  2148. up to 8 digits. A decimal point may be included in the amount only if
  2149. the number of digits to the right of the decimal point is non-zero.
  2150.  
  2151. If the current base is hex, the amount must be a hexadecimal number of
  2152. up to 8 digits.
  2153.  
  2154. If the current base is binary, the amount must be a binary number of
  2155. up to 16 digits.
  2156.  
  2157. If you press the ENTER key without having entered an amount or the
  2158. amount entered is zero, the cursor returns to the function field.
  2159.  
  2160. The system displays the last 15 function/amount transactions entered.
  2161. Once you exceed 15 transactions, the oldest transaction scrolls off
  2162. the screen as each new one is entered.
  2163.  
  2164. The following error messages may appear while you are using the cal-
  2165. culator.
  2166.  
  2167.     *  Must be numeric
  2168.  
  2169.        While entering a decimal amount (the base is decimal), you
  2170.        have typed a non-numeric character other than a decimal point,
  2171.        or you have typed a decimal point where one is not allowed.
  2172.  
  2173.     *  Must be binary
  2174.  
  2175.        While entering a binary amount (the base is binary), you have
  2176.        typed a character other than "0" or "1".
  2177.  
  2178.     *  Must be hex
  2179.  
  2180.        While entering a hexadecimal amount (the base is hex), you
  2181.        have typed a character other than 0-9 or A-F.
  2182.  
  2183.  
  2184.  
  2185.  
  2186.  
  2187.  
  2188.  
  2189.                                                                 -35-
  2190.  
  2191. 9.  USER ID FUNCTION
  2192.     ----------------
  2193.  
  2194. The User ID Function is initiated by pressing Shift-F3. The "User ID"
  2195. concept provides a method by which different users of the same compu-
  2196. ter may have different parameters, such as screen colors. Initiation
  2197. of the User ID Function does not interfere in any way with your edit.
  2198.  
  2199. You may press the help key (function key F1) at any time while you are
  2200. within the User ID function to get immediate on-screen help.
  2201.  
  2202. When initiated, the User ID menu screen will overlay your edit screen,
  2203. with the current User ID displayed at the top of the screen. If there
  2204. has not yet been a User ID defined on your computer, the current User
  2205. ID will be "default" and the system will be using default parameters.
  2206.  
  2207. When you begin an edit, the current User ID will be the same as that
  2208. in effect when the editor was last terminated.
  2209.  
  2210. The User ID menu offers 3 options. They are:
  2211.  
  2212.     1. Define a new User ID
  2213.  
  2214.     2. Change the Current User ID
  2215.  
  2216.     3. Update the parameters for the Current User ID
  2217.  
  2218.  
  2219. To define a new user ID, select option 1. You will be prompted for the
  2220. new User ID. The User ID may be up to 10 characters in length and must
  2221. be alphanumeric. Lower case letters are translated to upper case.
  2222.  
  2223. A newly defined User ID inherits all parameters of the current User ID
  2224. and also BECOMES the current User ID. If this is the firt User ID de-
  2225. fined on your computer, then it will inherit the "default" parameters.
  2226. Once a new User ID has been defined, you should select option 3 to set
  2227. the parameters.
  2228.  
  2229. Select option 2 on the User ID menu if you wish to change the current
  2230. User ID. You will be prompted for the new ID. The ID that you enter
  2231. must have been previously defined using option 1. Once the ID has been
  2232. entered and found to be valid, the parameters for that User ID become
  2233. effective immediately.
  2234.  
  2235. To change the parameters for the current User ID, select option 3. A
  2236. new screen will appear which will allow you to change any of the fol-
  2237. lowing parameters:
  2238.  
  2239.     *  Text Background Color
  2240.  
  2241.     *  Text Foreground Color
  2242.  
  2243.     *  Highlighted Background Color
  2244.  
  2245.     *  Highlighted Foreground Color
  2246.  
  2247.     *  Border Color
  2248.  
  2249.                                                                 -36-
  2250.  
  2251.     *  Alarm Length (lets you turn the alarm off if you so desire)
  2252.  
  2253.     *  Alarm Tone (set the tone of the alarm to your liking)
  2254.  
  2255.     *  Backup file option.  The default is NO. If you set this option
  2256.        to YES, the system creates a backup file whenever you update a
  2257.        file. As an example, if you change a file named "SORTDIR.ASM",
  2258.        then after a normal save and exit:
  2259.  
  2260.             SORTDIR.ASM will contain your edited file.
  2261.  
  2262.             SORTDIR.BAK will contain the version of SORTDIR.ASM as it
  2263.             existed before the edit.
  2264.  
  2265.     *  The option of having the Backspace key perform exactly like the
  2266.        left arrow key. The default is NO. Normally, when you press the
  2267.        Backspace key, the cursor moves one column to the left and the
  2268.        character in that column is erased. By setting this option to
  2269.        YES, the character is NOT erased when you press Backspace, and
  2270.        the key is thus identical in function to the left arrow key.
  2271.  
  2272.     *  Lines to Scroll. This is the number of lines that will scroll
  2273.        up or down on your screen when you press the PAGE UP or PAGE
  2274.        DOWN key when paging through a file. The default value is 11
  2275.        (a half page). You may set the value to any number from 1 to
  2276.        22. To scroll a full page, set the number to 22.
  2277.  
  2278.     *  The option of replacing blanks with TAB characters when writing
  2279.        an edited file back to disk. The default is NO. By setting this
  2280.        option to YES, you can save on the amount of disk space needed
  2281.        to store a file.
  2282.  
  2283.        The system automatically converts tab characters to blanks when
  2284.        it loads a file.
  2285.  
  2286.     *  Typematic rate. This is the rate at which a keystroke repeats
  2287.        automatically while you hold down a key. You can set the rate
  2288.        to 4, 6, 8, 10, 12, 16, 20, 24, or 30. The default is 30.
  2289.  
  2290.        The typematic rate is not supported on the IBM PC/XT. Changing
  2291.        the rate on these computers has no effect.
  2292.  
  2293.     *  The option of retaining the typematic rate when you exit the
  2294.        editor. The default is NO. By setting this option to YES, you
  2295.        can apply your selected typematic rate to DOS and to other
  2296.        programs.
  2297.  
  2298.     *  The option of displaying line numbers during your edit. The de-
  2299.        fault is YES. If you set this option to NO, the sequential line
  2300.        numbers will NOT appear to the left of the text lines on your
  2301.        edit screen.
  2302.  
  2303.     *  The option of printing the file name at the top of each page
  2304.        when you print all or part of a file. The default is YES.
  2305.  
  2306.  
  2307.  
  2308.  
  2309.                                                                 -37-
  2310.  
  2311.     *  The option of including line numbers on a listing when printing
  2312.        all or part of a file. The default is YES. You may include line
  2313.        numbers in a listing even if they are not displayed on the edit
  2314.        screen.
  2315.  
  2316.     *  The number of lines to be printed on a page while printing a
  2317.        file. The default is 60. You may set this number to any value
  2318.        from 10 to 100.
  2319.  
  2320.     *  The option of displaying hidden files along with other files
  2321.        when you do a directory search while finding the file-to-edit
  2322.        or when inserting lines from another file. The default is NO.
  2323.        Hidden files within a directory listing are identified by an
  2324.        asterisk (*) next to the file name.
  2325.  
  2326.     *  The option of having the system blank your screen after a spec-
  2327.        ified time period. The default is NO. The purpose of blanking a
  2328.        screen is to protect the monitor. If you set the option to YES,
  2329.        the screen will be blanked after a specified period of time has
  2330.        passed during which you have not pressed any key.
  2331.  
  2332.        Once a screen is blanked, you may press any key to unblank the
  2333.        screen, however, the key that you press serves only to unblank
  2334.        the screen and is NOT applied to the edit.
  2335.  
  2336.     *  The number of minutes to wait before a screen is blanked. The
  2337.        valid range is from 3 to 30 minutes. Unless the screen blanker
  2338.        option described above is set to YES, the number of minutes to
  2339.        wait is immaterial.
  2340.  
  2341.     *  The option of having the system save your file after a specific
  2342.        time period in which you have not pressed a key. The default is
  2343.        NO. If you set the option to YES, the system will automatically
  2344.        save your file after the specified period of time has passed,
  2345.        but ONLY if there are unsaved changes to your file.
  2346.  
  2347.     *  The number of minutes to wait before a file is automatically
  2348.        saved by the system. The valid range is from 3 to 30 minutes.
  2349.        Unless the automatic save option described above is set to YES,
  2350.        the number of minutes to wait is immaterial.
  2351.  
  2352. To change a parameter, use the up/down arrows until the parameter that
  2353. you wish to change is highlighted. Then use the left and right arrows
  2354. to set the parameter to the desired value.
  2355.  
  2356. For example, to change the text background color, use the up and down
  2357. arrows until the field named "Text Background Color" is highlighted.
  2358. Then use the left/right arrows to set the desired color. Each time you
  2359. press the left or right arrow, the text background color will change.
  2360. Any colors that you change will be applied to your edit screen if, and
  2361. only if, you save your changes.
  2362.  
  2363.  
  2364.  
  2365.  
  2366.  
  2367.  
  2368.  
  2369.                                                                 -38-
  2370.  
  2371. After you have set the parameters to your satisfaction, you may press
  2372. the letter "S" (or "s") to save the parameters. If you decide NOT to
  2373. save the parameters, press the ESCAPE key. After you have pressed "S"
  2374. or the ESCAPE key, you will return to the User ID menu screen. From
  2375. there, you can press the ESCAPE key to return to your edit screen.
  2376.  
  2377. Note that if there are no User ID's defined on your computer, you ARE
  2378. allowed to change the default parameters. However, any changes to the
  2379. default parameters are not retained once you exit AM-EDIT and return
  2380. to DOS.
  2381.  
  2382. In order to make your parameter settings permanent, you must define a
  2383. User ID using option 1 and then set the parameters using option 3.
  2384.  
  2385. All User ID's are maintained by the system on the file AMEDIT.DAT in
  2386. the root directory of your hard disk. This 1204-byte file is created
  2387. by the system at the time that you define your first User ID. Do NOT
  2388. attempt to create or update this file yourself!
  2389.  
  2390. The maximum number of user ID's that can be maintained on AMEDIT.DAT
  2391. is 30. If you should ever wish to delete all User ID's that have been
  2392. defined on your computer and start over, simply delete AMEDIT.DAT
  2393. from your root directory.
  2394.  
  2395. The following error messages may appear while you are within the User
  2396. ID function.
  2397.  
  2398.  
  2399.     *  User ID must be alphanumeric
  2400.  
  2401.        While entering a User ID, you have entered a character other
  2402.        than a letter or a number.
  2403.  
  2404.     *  User ID is not defined
  2405.  
  2406.        You are attempting to change the current User ID, but the ID
  2407.        that you entered has not been defined.
  2408.  
  2409.     *  User ID is already defined
  2410.  
  2411.        You are attempting to add a new User ID to the system, but the
  2412.        User ID that you entered has already been defined.
  2413.  
  2414.     *  User ID Table is full
  2415.  
  2416.        You are attempting to add a new User ID, but there are already
  2417.        30 user ID's defined on your computer. This is the maximum. If
  2418.        you wish to delete all user ID's and start over, you must del-
  2419.        ete file AMEDIT.DAT from the root directory of your hard disk.
  2420.  
  2421.  
  2422.  
  2423.  
  2424.  
  2425.  
  2426.  
  2427.  
  2428.  
  2429.                                                                 -39-
  2430.  
  2431. APPENDIX A - MESSAGES
  2432. ---------------------
  2433.  
  2434. There are 2 types of messages within AM-EDIT; Informative messages and
  2435. error messages. All messages are centered on the screen's bottom line.
  2436.  
  2437. The message will be cleared from the screen as soon as you press the
  2438. next key.
  2439.  
  2440.  
  2441.     A.1  INFORMATIVE MESSAGES
  2442.     -------------------------
  2443.  
  2444.     Informative messages inform you of action which has been taken or
  2445.     which cannot be taken as the result of a command that you entered
  2446.     or a function key that was pressed. The alarm does NOT sound when
  2447.     these messages appear.
  2448.  
  2449.  
  2450.     1.  Lines deleted: nnnnn
  2451.  
  2452.         Tells you how many lines were deleted after the completion of
  2453.         a Delete command or after you have pressed function key F4 to
  2454.         delete the current line.
  2455.  
  2456.     2.  Lines restored: nnnnn
  2457.  
  2458.         Tells you how many lines were restored into your file after
  2459.         you pressed function key Shift-F4 to restore deleted line(s).
  2460.  
  2461.     3.  Lines moved: nnnnn
  2462.  
  2463.         Tells you how many lines were moved after the completion of a
  2464.         Move command.
  2465.  
  2466.     4.  Lines copied: nnnnn
  2467.  
  2468.         Tells you how many lines were copied after the completion of a
  2469.         Copy command.
  2470.  
  2471.     5.  Lines inserted: nnnnn [Truncated: nnnnn]
  2472.  
  2473.         Tells you how many lines were added to your file after you use
  2474.         an Insert command to insert lines from another file.
  2475.  
  2476.         If any inserted lines exceeded the maximum record length of
  2477.         1024 characters, then those lines were truncated and a count
  2478.         of the records truncated is included in the message.
  2479.  
  2480.     6.  Substitutions: nnnnn [Truncated: nnnnn]
  2481.  
  2482.         After a find-and-replace-all command, tells you how many oc-
  2483.         currences of the search string were located and replaced by
  2484.         the replacement string.
  2485.  
  2486.  
  2487.  
  2488.  
  2489.                                                                 -40-
  2490.  
  2491.         If you were replacing a text string with a longer string, it
  2492.         is possible that one or more of the lines altered by the com-
  2493.         mand will exceed the maximum record length of 1024 characters.
  2494.         If so, the effected line(s) are truncated to 1024 characters
  2495.         in length, and a count of the truncated lines is included in
  2496.         the message.
  2497.  
  2498.     7.  Saving
  2499.  
  2500.         Informs you that the system is in the process of saving your
  2501.         file. The message appears after you press function key F8 and
  2502.         there have been changes to your file since the last save (or
  2503.         since you began the edit if this is the first save).
  2504.  
  2505.     8.  File saved
  2506.  
  2507.         This message appears after a save is completed. You have the
  2508.         option of terminating the edit at this point by pressing func-
  2509.         tion key F8 again.
  2510.  
  2511.     9.  File unchanged
  2512.  
  2513.         This message will appear after you press function key F8 to
  2514.         save your file and the system finds that there are no changes
  2515.         to save. You have the option of terminating the edit at this
  2516.         point by pressing function key F8 again.
  2517.  
  2518.    10.  Printing
  2519.  
  2520.         Appears after a Print command to inform you that the system
  2521.         is in the process of sending your text to the print queue.
  2522.  
  2523.    11.  *** Top of data ***
  2524.  
  2525.         You have pressed the up arrow, PAGE UP, or Shift-TAB key, but
  2526.         the key was ignored because you are already at the top line or
  2527.         top page of your file.
  2528.  
  2529.    12.  *** End of data ***
  2530.  
  2531.         Informs you that a key that you have just pressed (such as
  2532.         down arrow, PAGE DOWN, ENTER, or TAB) was ignored because you
  2533.         are already at the bottom line or bottom page of your file.
  2534.  
  2535.         The message will also appear during a Trace command once there
  2536.         are no more altered lines to display.
  2537.  
  2538.    13.  Press Shift-F10 to verify cancel
  2539.  
  2540.         Can appear after you press the cancel key (Shift-F8) to inform
  2541.         you that there are unsaved changes to your file. Asks you to
  2542.         verify that you wish to cancel the edit despite the fact that
  2543.         you will lose those changes.
  2544.  
  2545.  
  2546.  
  2547.  
  2548.  
  2549.                                                                 -41-
  2550.  
  2551.         If you decide that you do NOT wish to cancel the edit, press
  2552.         any other key to continue with the edit.
  2553.  
  2554.    14.  Directory Search cancelled
  2555.  
  2556.         You initiated a directory search from the file-to-edit screen
  2557.         of during an Insert command, but you then cancelled the search
  2558.         by pressing function key F8.
  2559.  
  2560.    15.  Starting new file
  2561.  
  2562.         Informs you that the file that you entered as the file-to-edit
  2563.         does not exist and that a new file will be created as a result
  2564.         of the edit. If you entered the file name incorrectly, you can
  2565.         press Shift-F8 to cancel the edit and thus avoid the creation
  2566.         of a new file.
  2567.  
  2568.    16.  Edit cancelled - changes lost
  2569.  
  2570.         You have cancelled an edit in which there were unsaved changes
  2571.         by pressing Shift-F8 followed by Shift-F10. All of the unsaved
  2572.         changes were therefore lost. This message appears on the file-
  2573.         to-edit screen as the system prompts you for the next file to
  2574.         be edited.
  2575.  
  2576.    17.  Edit cancelled
  2577.  
  2578.         You have cancelled an edit by pressing Shift-F8. There were
  2579.         no unsaved changes to the file at the time that you pressed
  2580.         the key. This message appears on the file-to-edit screen.
  2581.  
  2582.    18.  Loading file
  2583.  
  2584.         This message tells you that the system is in the process of
  2585.         loading a file. The message will appear either on the file-
  2586.         to-edit screen or on the edit screen during execution of an
  2587.         Insert command.
  2588.  
  2589.    19.  End of line
  2590.  
  2591.         You have either pressed the right arrow key or entered a char-
  2592.         acter on a line where the cursor is already positioned at the
  2593.         last column of the line. Normally when you type a character,
  2594.         the cursor moves 1 position to the right to allow you to enter
  2595.         the next character. This message tells you that having reached
  2596.         the end of the line, the cursor is unable to move.
  2597.  
  2598.         You can continue typing characters after this message appears,
  2599.         but each character typed will overwrite the character which is
  2600.         already at the end of the line.
  2601.  
  2602.    20.  No room to insert
  2603.  
  2604.         While in insert mode (as opposed to overwrite mode), you have
  2605.         attempted to type a character into a field or a line in which
  2606.         there is a non-blank character in the last column.
  2607.  
  2608.  
  2609.                                                                 -42-
  2610.  
  2611.     A.2  ERROR MESSAGES
  2612.     -------------------
  2613.  
  2614.     Error messages are displayed when you attempt some action which is
  2615.     not allowed or which cannot be performed by the system.
  2616.  
  2617.     The alarm will normally sound when an error message is displayed.
  2618.     You can use the User ID function (see Section 9) to adjust the
  2619.     length and tone of the alarm for your User ID.
  2620.  
  2621.     The "Alarm Length" parameter controls how long the alarm sounds.
  2622.     To turn the alarm off, use the up and down arrow on the User ID
  2623.     Parameter screen until the field named "Alarm Length" is high-
  2624.     lighted. Then press the left arrow key until the alarm length is
  2625.     zero.
  2626.  
  2627.  
  2628.     1.  Invalid command
  2629.  
  2630.         The system does not recognize your command.
  2631.  
  2632.     2.  Extra character(s) on line
  2633.  
  2634.         You have entered a valid command, but there are one or more
  2635.         extra characters on the command line. For example, you enter
  2636.         "d 1", but the character "1" is unneeded. If you had entered
  2637.         "d1", the error "Invalid command" would have resulted.
  2638.  
  2639.     3.  Incomplete command
  2640.  
  2641.         You have entered a valid command, but the command requires an
  2642.         argument.  For example,  you entered "F" on the command line,
  2643.         but a Find command requires at least one argument. This error
  2644.         can occur on a Find, Move, or Copy command.
  2645.  
  2646.     4.  Improper Move command
  2647.  
  2648.         You have attempted to move a range of lines to a spot within
  2649.         the range itself, for example, you attempt to move lines 21-28
  2650.         after line 24.
  2651.  
  2652.         Note that you would get this error message if you attempted to
  2653.         move line 21-28 after line 28 or attempted to move lines 21-28
  2654.         before line 21, since these commands would not result in the
  2655.         actual movement of any lines.
  2656.  
  2657.     5.  Improper Copy command
  2658.  
  2659.         You have attempted to copy a range of lines to a spot within
  2660.         the range itself. For example, you attempt to copy lines 45-65
  2661.         after line 55.
  2662.  
  2663.         You can copy lines 45-65 after line 65, but you cannot copy
  2664.         lines 45-65 BEFORE line 65. Conversely, you may copy lines
  2665.         45-65 before line 45 but not AFTER line 45.
  2666.  
  2667.  
  2668.  
  2669.                                                                 -43-
  2670.  
  2671.     6.  Invalid keyword
  2672.  
  2673.         During a Move or Copy command, you entered a keyword other
  2674.         than "a" or "b" on the command line at the point that you are
  2675.         ready to set the current line to the target line of the move
  2676.         or copy.
  2677.  
  2678.         OR
  2679.  
  2680.         You are attempting to execute a find-and-replace-all command,
  2681.         but have entered a keyword other than "a" or "all" after the
  2682.         replacement text string.
  2683.  
  2684.     7.  This key has no meaning
  2685.  
  2686.         You have pressed a key which has no meaning. For example, most
  2687.         Ctrl-function key and Alt-function key combinations have no
  2688.         meaning in this version of AM-EDIT.
  2689.  
  2690.     8.  Null string not valid here
  2691.  
  2692.         You have entered a null string as the search argument within a
  2693.         Find command. A null string is valid in a Find command only if
  2694.         it is the replacement argument.
  2695.  
  2696.     9.  Unmatched quote
  2697.  
  2698.         Within a Find command, you have entered either a search string
  2699.         or a replacement string which begins with a quote or a double
  2700.         quote, but you did not end the string with a matching quote or
  2701.         double quote.
  2702.  
  2703.    10.  "search string" not found
  2704.  
  2705.         You have done one of the following:
  2706.  
  2707.         *  Entered a Find or Find-and-replace command.
  2708.         *  Pressed function key F9 to find the next occurrence of a
  2709.            text string.
  2710.         *  Pressed function key Shift-F9 to find the previous occur-
  2711.            rence of a text string.
  2712.  
  2713.         The message informs you that the text string was not found be-
  2714.         fore the end (or beginning) of your file was reached. You may
  2715.         press function key F9 (or Shift-F9) to restart the search at
  2716.         the first (or last) line of your file.
  2717.  
  2718.         Due to the limited space available for message display, only
  2719.         the first 27 characters of the "search string" will appear in
  2720.         the message should the string exceed 27 characters in length.
  2721.  
  2722.    11.  No search argument
  2723.  
  2724.         You have pressed function key F9 (or Shift-F9) to search for
  2725.         the next (or previous) occurrence of a text string, but you
  2726.         have not yet used a Find command during the edit to define a
  2727.         text string for which to search.
  2728.  
  2729.                                                                 -44-
  2730.  
  2731.    12.  Nothing to restore
  2732.  
  2733.         You pressed function key Shift-F4 to restore lines, but there
  2734.         are no lines to restore. This means that you have not yet de-
  2735.         leted any lines during the edit or you have already restored
  2736.         all deleted lines which can be restored.
  2737.  
  2738.    13.  Command conflict
  2739.  
  2740.         You have entered a command on the command line and then, in-
  2741.         stead of pressing the ENTER key to execute the command, you
  2742.         pressed a function key which acts as a command. The system
  2743.         does not know which command to process.
  2744.  
  2745.         The message will appear if you press any of the following keys
  2746.         while the command line is NOT blank.
  2747.  
  2748.            *  F4 - delete current line
  2749.            *  F5 - duplicate current line
  2750.            *  F6 - type new line(s) before the current line
  2751.            *  F7 - split the current line
  2752.            *  Shift-F4 - restore deleted line(s)
  2753.            *  Shift-F6 - type new line(s) after the current line
  2754.            *  Shift-F7 - join the current line to the previous line
  2755.  
  2756.    14.  Key not valid while adding text
  2757.  
  2758.         You have pressed an illegal command key while in the process
  2759.         of typing a new text line into your file. These keys are:
  2760.  
  2761.            *  F4 - Delete current line
  2762.            *  F5 - Duplicate current line
  2763.            *  F7 - Split the current line
  2764.            *  Shift-F4 - Restore deleted line(s)
  2765.            *  Shift-F7 - Join the current line to the previous line
  2766.  
  2767.    15.  Shift-F7 not valid here
  2768.  
  2769.         You pressed Shift-F7 (join current line to the previous line)
  2770.         while the current line is the first line of your file. There
  2771.         is no previous line to which the current line can be joined.
  2772.  
  2773.    16.  Key not enabled at this time
  2774.  
  2775.         You have pressed function key F10 or Shift-F10, but the key
  2776.         was not enabled at the time that it was pressed.
  2777.  
  2778.         Function key F10 is enabled at the point immediately after
  2779.         you have located an occurrence of a search string during a
  2780.         find-and-replace command.
  2781.  
  2782.         Shift-F10 is enabled immediately after you press Shift-F8 to
  2783.         cancel your edit and the message "Press Shift-F10 to verify
  2784.         cancel" appears at the bottom of your screen.
  2785.  
  2786.  
  2787.  
  2788.  
  2789.                                                                 -45-
  2790.  
  2791.    17.  Printer not ready
  2792.  
  2793.         You entered a print or form feed command, but the designated
  2794.         printer is turned off, is not on-line, or is out of paper.
  2795.  
  2796.    18.  Printer does not exist
  2797.  
  2798.         You entered a print or form feed command, but the designated
  2799.         printer does not exist. For example, you entered the command
  2800.         "P3", but no printer is assigned to "LPT3" on your computer.
  2801.  
  2802.    19.  Line overflow - key ignored
  2803.  
  2804.         You have pressed Shift-F7 to join a line to the previous line
  2805.         or you pressed function key F10 to replace a string during a
  2806.         find-and-replace operation, but the resulting line would have
  2807.         exceeded the maximum line length of 1024 characters. The key
  2808.         was therefore ignored.
  2809.  
  2810.    20.  This is a null file
  2811.  
  2812.         The file specified in an Insert command is a null file (a file
  2813.         that exists, but which has no records). Therefore, there were
  2814.         no lines inserted into your file as a result of the command.
  2815.  
  2816.    21.  Out of memory - cancel recommended
  2817.  
  2818.         This error can occur ONLY during a find-and-replace-all com-
  2819.         mand in which you are replacing all occurrences of a string
  2820.         with a LONGER string.
  2821.  
  2822.         The message informs you that the system ran out of memory be-
  2823.         fore all strings were replaced. Unless you can correct the
  2824.         problem, it is recommended that you cancel the edit at this
  2825.         point, since the file has been corrupted.
  2826.  
  2827.    22.  Lines truncated: nnnnn
  2828.  
  2829.         This message can appear after the initial loading of your file
  2830.         to inform you that one or more lines in the file exceeded the
  2831.         maximum line length of 1024 characters. Those lines were thus
  2832.         truncated to 1024 characters.
  2833.  
  2834.    23.  This is not a text file
  2835.  
  2836.         The file specified as the argument in an Insert command is not
  2837.         a text file. You can not merge non-text files into text files.
  2838.  
  2839.    24.  Invalid file name
  2840.  
  2841.         The file name that you entered as the "file to edit" or as the
  2842.         argument in an Insert command is not a valid DOS file name.
  2843.         Some examples:
  2844.  
  2845.            c:\aworkfile    (File name is over 8 characters in length)
  2846.            c:\work.info    (Suffix is over 3 characters in length)
  2847.            a\:work         (Should be a:\work)
  2848.  
  2849.                                                                 -46-
  2850.  
  2851.    25.  Invalid path
  2852.  
  2853.         The file name that you entered as the "file to edit" or as the
  2854.         argument in an Insert command contains an invalid path. As an
  2855.         example, you entered "C:\DOCM\WORK", but the directory "DOCM"
  2856.         does not exist.
  2857.  
  2858.    26.  File access denied
  2859.  
  2860.         The file that you specified as the "file-to-edit" or as the
  2861.         argument in an Insert command cannot be accessed. This could
  2862.         mean that you entered a directory name as the file name, for
  2863.         example, you typed "C:\DOS" as the file name.
  2864.  
  2865.    27.  File not found
  2866.  
  2867.         The file specified in an Insert command was not found. Remem-
  2868.         ber that you must enter the full path name unless the file is
  2869.         in the current directory (the directory you were in when you
  2870.         executed AM-EDIT). Remember also that you can do a directory
  2871.         search to find the desired file.
  2872.  
  2873.    28.  Out of memory - File truncated
  2874.  
  2875.         During the initial loading of your file, the system ran out
  2876.         of memory before it could load the entire file.
  2877.  
  2878.    29.  Out of memory
  2879.  
  2880.         You attempted to execute a command which would cause a memory
  2881.         overflow condition. The command was ignored. Try restarting
  2882.         the edit after doing a save and exit.
  2883.  
  2884.    30.  Too many lines - File truncated
  2885.  
  2886.         During the initial loading of your file, the system loaded the
  2887.         first 60,000 lines, but could not load the remainder of the
  2888.         file because of the system limitation on the number of lines.
  2889.  
  2890.    31.  Too many lines
  2891.  
  2892.         You attempted to execute a command which would cause the num-
  2893.         ber of text lines to exceed 60,000. The command was ignored.
  2894.  
  2895.    32.  Memory is at capacity
  2896.  
  2897.         The system has used all available memory. You may not execute
  2898.         any command which would increase the size of your file, except
  2899.         for function key Shift-F4 (restore deleted lines).
  2900.  
  2901.  
  2902.  
  2903.  
  2904.  
  2905.  
  2906.  
  2907.  
  2908.  
  2909.                                                                 -47-
  2910.  
  2911.